Re: [ping] [PATCH] Different outputs affected by locale

Pedro Alves
2014-06-16T13:58:18Z

On 06/12/2014 07:34 PM, Eli Zaretskii wrote:

> With you so far. But note that on Windows, even the above does not
> guarantee "stable output", because the console codepage is not changed
> by 'setlocale',

I guess the harmness could run gdb under chcp 65001 or some such.

> You cannot ask the Windows 'setlocale' to use UTF-8 as the codeset
> (although there is a UTF-8 codepage, and Windows does support it in
> general). More importantly, since 'setlocale' on Windows disregards
> the environment variables, you cannot change the host charset by
> setting environment variables. You must do that by a GDB command that
> sets host-charset.

See https://sourceware.org/ml/gdb-patches/2014-06/msg00364.html .

--
Pedro Alves