diff options
Diffstat (limited to 'winsup/cygwin/nlsfuncs.cc')
-rw-r--r-- | winsup/cygwin/nlsfuncs.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/nlsfuncs.cc b/winsup/cygwin/nlsfuncs.cc index 0099a967f..668d7eb9e 100644 --- a/winsup/cygwin/nlsfuncs.cc +++ b/winsup/cygwin/nlsfuncs.cc @@ -1542,11 +1542,11 @@ internal_setlocale () if (path && *path) /* $PATH can be potentially unset. */ { w_path = tp.w_get (); - sys_cp_mbstowcs (cygheap->locale.mbtowc, w_path, 32768, path); + _sys_mbstowcs (cygheap->locale.mbtowc, w_path, 32768, path); } w_cwd = tp.w_get (); cwdstuff::cwd_lock.acquire (); - sys_cp_mbstowcs (cygheap->locale.mbtowc, w_cwd, 32768, + _sys_mbstowcs (cygheap->locale.mbtowc, w_cwd, 32768, cygheap->cwd.get_posix ()); /* Set charset for internal conversion functions. */ cygheap->locale.mbtowc = __get_global_locale ()->mbtowc; |