mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-04 09:17:18 +02:00
Deal with yet another issue related to "Norwegian (Bokmål)" locale.
It emerges that recent versions of Windows (at least 2016 Standard) spell this locale name as "Norwegian Bokmål_Norway.1252", defeating our mapping code that translates "Norwegian (Bokmål)_Norway" to something that's all-ASCII (cf commitsdb29620d4
andaa1d2fc5e
). Add another mapping entry to handle this spelling. Per bug #16068 from Robert Ford. Like the previous patches, back-patch to all supported branches. Discussion: https://postgr.es/m/16068-4cb6eeaa7eb46d93@postgresql.org
This commit is contained in:
parent
4e19bd41d9
commit
a05a04d0ed
@ -96,8 +96,12 @@ static const struct locale_map locale_map_result[] = {
|
|||||||
*
|
*
|
||||||
* It's not clear what encoding setlocale() uses when it returns the
|
* It's not clear what encoding setlocale() uses when it returns the
|
||||||
* locale name, so to play it safe, we search for "Norwegian (Bok*l)".
|
* locale name, so to play it safe, we search for "Norwegian (Bok*l)".
|
||||||
|
*
|
||||||
|
* Just to make life even more complicated, some versions of Windows spell
|
||||||
|
* the locale name without parentheses. Translate that too.
|
||||||
*/
|
*/
|
||||||
{"Norwegian (Bokm", "l)_Norway", "Norwegian_Norway"},
|
{"Norwegian (Bokm", "l)_Norway", "Norwegian_Norway"},
|
||||||
|
{"Norwegian Bokm", "l_Norway", "Norwegian_Norway"},
|
||||||
{NULL, NULL, NULL}
|
{NULL, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user