This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH][PR server/24377] Fix mixing English and system default languages in error messages on Windows
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Владимир Мартьянов <vilgeforce at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 23 Mar 2019 15:11:21 +0200
- Subject: Re: [PATCH][PR server/24377] Fix mixing English and system default languages in error messages on Windows
- References: <CAL5iTPJO-WLB8a07+K_aE4fkDkr8kPewkm9wPtuYDGnkq8bWrg@mail.gmail.com>
> From: Владимир Мартьянов <vilgeforce@gmail.com>
> Date: Sat, 23 Mar 2019 14:59:05 +0300
>
> The fourth argument of FormatMessage() in strwinerror() in file
> win32-low.c is set to zero. Thus, Windows could use system default
> locale to translate error codes to error message. At the same time,
> gdbserver have hardcoded English error messages ("Error creating
> process..." for example). As a result, server could display error
> messages with mixed languages.
>
> I made a patch to use en_US locale in FormatMessage, so all error
> messages will be in English.
Thanks, but isn't this a step backward? Would it make sense to have
the hard-coded messages be translated instead? Or is that impossible
for some reason?