[fpc-pascal] GetLocaleInfo returns ZZZ
Darius Blaszyk
dhkblaszyk at gmail.com
Thu Feb 22 07:59:26 CET 2018
On my machine getlocaleinfo returns ZZZ when requesting the abbrev langname. The country code is correctly set to NL. This makes gettext.GetLanguageIDs return zz_NL. What could be causing this?
Also the behavior of GetLocaleInfoIDs does not seem to be according to the gettext manual. On windows the locale is determined by the Win API and on all other platforms the environment variables are checked as they are described in the manual but the first LANGUAGE env var is not probed and followed. This env var gives the preferred order of translations.
I would like to align this functionality over the platforms, but want to ask for advice wether or not a patch would be accepted.
Rgds Darius
Verstuurd vanaf mijn iPhone
More information about the fpc-pascal
mailing list