+2010-08-16 Charles Wilson <cwilson@...>
+
+ * cygstart.c (cygstart_posix_to_win_w): Use CCP_RELATIVE
+ when converting paths; enables 'cygstart calc'. Reported
+ by Ken Hirsch.
+ * NEWS: Document.
+
2010-08-16 Charles Wilson <cwilson@...>
* cygstart.1: Update URL for reference to MS 'ShellExecute'
* ascii: by default, now only prints characters 0..127. Use new
option --extended/-e for old behavior, printing characters 0..255.
See this thread: http://cygwin.com/ml/cygwin/2010-04/msg00600.html
+ * cygstart: Fix --reference. Allow relative paths (enables, e.g.
+ 'cygstart calc'). Reported by Ken Hirsch.
+ http://cygwin.com/ml/cygwin/2010-01/msg01101.html
* Updated license for lpr to GPLv3+ (with permission from
Rick Rankin)
* Updated license for readshortcut to GPLv3+ (with permission
cygstart_posix_to_win_w (const char *posix_mbs_path, wchar_t **w32_wcs_path)
{
int rc = 0;
- ssize_t len = cygwin_conv_path (CCP_POSIX_TO_WIN_W, posix_mbs_path, NULL, 0);
+ ssize_t len = cygwin_conv_path (CCP_POSIX_TO_WIN_W|CCP_RELATIVE,
+ posix_mbs_path, NULL, 0);
if (len < 0)
{
fprintf (stderr,
goto err_cleanup;
}
- if (cygwin_conv_path (CCP_POSIX_TO_WIN_W, posix_mbs_path, *w32_wcs_path,
+ if (cygwin_conv_path (CCP_POSIX_TO_WIN_W|CCP_RELATIVE,
+ posix_mbs_path, *w32_wcs_path,
(len + 1) * sizeof (wchar_t)) < 0)
{
fprintf (stderr,