This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [ping] [PATCH] Different outputs affected by locale


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


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