search for: _wchdir

Displaying 1 result from an estimated 1 matches for "_wchdir".

Did you mean: __chdir
2013 Jan 11
1
Patch for setwd() to show path in error message
...9;path/that/fails/' PATCH: % diff -u util.c "util,patch.c" --- util.c 2012-12-16 13:13:05.002249900 -0800 +++ util,patch.c 2013-01-11 11:52:16.843236400 -0800 @@ -696,14 +696,14 @@ { const wchar_t *path = filenameToWchar(STRING_ELT(s, 0), TRUE); if(_wchdir(path) < 0) - error(_("cannot change working directory")); + error(_("cannot change working directory to '%s'"), path); } #else { const char *path = R_ExpandFileName(translateChar(STRING_ELT(s, 0))); if(chdir(path)...