]> sourceware.org Git - newlib-cygwin.git/commitdiff
* locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODE
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 28 Nov 2011 17:58:48 +0000 (17:58 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 28 Nov 2011 17:58:48 +0000 (17:58 +0000)
path and convert that to POSIX.

winsup/utils/ChangeLog
winsup/utils/locale.cc

index b56af5aee60428794f149ccf70f2f61094e35268..fdcf07800b1f83af473ac93dc27089b2dd13d737 100644 (file)
@@ -1,3 +1,8 @@
+2011-11-28  Corinna Vinschen  <corinna@vinschen.de>
+
+       * locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODE
+       path and convert that to POSIX.
+
 2011-11-28  Corinna Vinschen  <corinna@vinschen.de>
 
        * ps.cc: Remove all Win 9x considerations.  Use psapi functions
index 8ce7a5253741451f5e0798b149c53a1423e0fae3..572ed4bcf017f7ab7a3177dc5fdbe37ecb969b91 100644 (file)
@@ -154,10 +154,10 @@ print_locale_with_codeset (int verbose, loc_t *locale, bool utf8,
     return;
   if (!sysroot)
     {
-      char sysbuf[PATH_MAX];
+      WCHAR sysbuf[PATH_MAX];
       HMODULE k32 = GetModuleHandleW (L"kernel32.dll");
-      if (GetModuleFileName (k32, sysbuf, PATH_MAX))
-       sysroot = (const char *) cygwin_create_path (CCP_WIN_A_TO_POSIX,
+      if (GetModuleFileNameW (k32, sysbuf, PATH_MAX))
+       sysroot = (const char *) cygwin_create_path (CCP_WIN_W_TO_POSIX,
                                                     sysbuf);
       if (!sysroot)
        sysroot = "kernel32.dll";
This page took 0.034634 seconds and 5 git commands to generate.