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: LRN <lrn1986 at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 03 Apr 2019 10:38:03 +0300
- 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> <83mullpwg6.fsf@gnu.org> <CAL5iTP+hJE6x2gk3Q3N_ikJdr-ie62vG4HwKCZCfX0HnZwyZFw@mail.gmail.com> <83ef6qjdbb.fsf@gnu.org> <CAL5iTPJr_-WxFcCSFdq_CEoBHuq22FVr55aA1WQisO9DPiEv2w@mail.gmail.com> <838swyjafd.fsf@gnu.org> <CAL5iTPJD77ML8=2uM_dc63QCSHtKrgQTZe2MQbPUoo=veAYJ3A@mail.gmail.com> <837echkgjo.fsf@gnu.org> <CAL5iTP+_iZwf+NyMXM8+xRUd4H8ibSSvTKF=e8HrQ+MbJDfv1g@mail.gmail.com> <8336n3hzkx.fsf@gnu.org> <CAL5iTP+7snxFyw4B8bfBNJtfy+B3p3kSCfdQcChmkw+gwrN5eA@mail.gmail.com> <7041169d-9f64-fcce-2c3c-021dd1858923@dronecode.org.uk> <CAL5iTP+tOSGjidKxfwpg7StqKxYOWJd6bVRoqQSUxPerxn=vRQ@mail.gmail.com> <83wokbelu2.fsf@gnu.org> <56f759e3-65ad-f284-40f8-5b221477a9de@gmail.com>
> From: LRN <lrn1986@gmail.com>
> Date: Wed, 3 Apr 2019 07:58:44 +0300
>
> > Beware: only the Cygwin setlocale supports environment variables, the
> > native MS-Windows implementation used by MinGW does not.
> >
>
> That's what gettext is for. And/or gnulib.
Won't happen unless Gnulib's setlocale is imported. And the proposed
patch didn't do that, AFAIU. (I don't see 'setlocale' in the Gettext
library, FWIW, so I don't think Gettext alone will solve this.)