[fpc-pascal] GetLocaleInfo returns ZZZ
henry.vermaak at gmail.com
Wed Feb 28 14:02:35 CET 2018
On Wed, Feb 28, 2018 at 01:36:31PM +0100, Bart wrote:
> On Wed, Feb 28, 2018 at 10:58 AM, Henry Vermaak <henry.vermaak at gmail.com> wrote:
> > The Windows implementation of GetLanguageIDs() in gettext.pp is not
> > right. It uses GetLocaleInfo() with LOCALE_SABBREVLANGNAME and
> > LOCALE_SABBREVCTRYNAME where it should probably be using
> > LOCALE_SISO639LANGNAME and LOCALE_SISO3166CTRYNAME, respectively. The
> > *_SISO* constants work on Windows 98 and later, maybe that was the
> > reason for using *_SABBREV* originally.
> Results of GetLocaleInfo with different parameters on my Win10 machine:
> LOCALE_SABBREVLANGNAME -> NLD
> LOCALE_SABBREVCTRYNAME -> NLD
> LOCALE_SISO639LANGNAME -> nl
> LOCALE_SISO3166CTRYNAME -> NL
> LOCALE_SISO639LANGNAME2 -> nld
> LOCALE_SISO3166CTRYNAME2 -> NLD
Yes, it makes no difference for nl, that's why I posted a link that
contains a table that shows where the differences are.
Note that I don't have an answer for the zzz problem, it works fine for
me. I was addressing the second paragraph of Darius's mail.
More information about the fpc-pascal