This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setup for 1.7 fails with Japanese characters in download


On Oct  3 08:51, Andy Koppe wrote:
> --- main.cc     20 Sep 2009 16:41:30 -0000      2.56
> +++ main.cc     3 Oct 2009 07:36:33 -0000
> @@ -225,6 +225,11 @@ main (int argc, char **argv)
>    hinstance = GetModuleHandle (NULL);
>  #endif
> 
> +  // Make sure the C runtime functions use the same codepage as the GUI
> +  char locale[12];
> +  snprintf(locale, sizeof locale, ".%u", GetACP());
> +  setlocale(LC_ALL, locale);
> +
>    try {
>      char cwd[MAX_PATH];
>      GetCurrentDirectory (MAX_PATH, cwd);

Thanks, applied.  A ChangeLog would have been nice, though ;)


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]