This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: setup for 1.7 fails with Japanese characters in download
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-apps at cygwin dot com
- Date: Sat, 3 Oct 2009 12:26:04 +0200
- Subject: Re: setup for 1.7 fails with Japanese characters in download
- References: <20091003100318.1312@binki> <416096c60910030051n39f649f9sd30328b576409dbd@mail.gmail.com>
- Reply-to: cygwin-apps at cygwin dot com
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