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/16/2014 04:40 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 could, but it won't help, really.  It's a long story, but support
> for UTF-8 on a Windows console is pathetic.  With enough trouble
> (which will need source changes in GDB and in Readline), you might
> have European characters displayed correctly, if you also change the
> console font to Lucida Console.  But anything beyond European
> characters simply cannot be displayed, because the font doesn't have
> them.

OK, I was focusing more on the "stable output" aspect than
the specific codepage.

-- 
Pedro Alves


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