Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdb477b6

Browse files
committed
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", defeatingour mapping code that translates "Norwegian (Bokmål)_Norway" tosomething that's all-ASCII (cf commitsdb29620 andaa1d2fc).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
1 parentd995fd6 commitdb477b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/port/win32setlocale.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,12 @@ static const struct locale_map locale_map_result[] = {
9696
*
9797
* It's not clear what encoding setlocale() uses when it returns the
9898
* locale name, so to play it safe, we search for "Norwegian (Bok*l)".
99+
*
100+
* Just to make life even more complicated, some versions of Windows spell
101+
* the locale name without parentheses. Translate that too.
99102
*/
100103
{"Norwegian (Bokm","l)_Norway","Norwegian_Norway"},
104+
{"Norwegian Bokm","l_Norway","Norwegian_Norway"},
101105
{NULL,NULL,NULL}
102106
};
103107

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp