[PATCH][PR server/24377] Fix mixing English and system default languages in error messages on Windows

Владимир Мартьянов vilgeforce@gmail.com
Sun Mar 31 19:39:00 GMT 2019


вс, 31 мар. 2019 г. в 17:45, Eli Zaretskii <eliz@gnu.org>:

> Bother: do we want to behave like a Posix platform here, or like a
> Windows system?  Windows doesn't have LC_MESSAGES as a locale
> category.

I just saw LC_MESSAGES usage in gettext...

> Finally, a more general point: I'm not sure I understand the purpose
> of this change.  Is the purpose to let users control the language of
> the gdbserver system error messages?

Yes, it's the purprose.

> If so, would they need to
> control that by setting environment variables?  It sounds less
> convenient than it could have been, I think.  Why not a GDB variable
> instead?

Environment variables are used in gettext anyway, I think single
source for localisation language is convenient.

I corrected issues you mentioned (I hope!) and made a function to get locale ID.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gettext-like-localisation-of-error-messages-added-to.patch
Type: application/octet-stream
Size: 3285 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20190331/8d253094/attachment.obj>


More information about the Gdb-patches mailing list