summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-02-06 21:57:33 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-02-06 21:57:33 +0000
commit689109a76ff9a34e97dea14145d70f0f3dc83d04 (patch)
tree9e6e0ba8ee9c482ceb1d39496fce814462c88173
parent573df59cd45796a1037c731c62a1bee86bb87913 (diff)
downloadcygnal-689109a76ff9a34e97dea14145d70f0f3dc83d04.tar.gz
cygnal-689109a76ff9a34e97dea14145d70f0f3dc83d04.tar.bz2
cygnal-689109a76ff9a34e97dea14145d70f0f3dc83d04.zip
* nlsfuncs.cc (__get_lcid_from_locale): Handle no_NO as nb_NO, rather
than nn_NO.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/nlsfuncs.cc10
2 files changed, 10 insertions, 5 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 00a791891..6d52d0d4e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2010-02-06 Corinna Vinschen <corinna@vinschen.de>
+ * nlsfuncs.cc (__get_lcid_from_locale): Handle no_NO as nb_NO, rather
+ than nn_NO.
+
+2010-02-06 Corinna Vinschen <corinna@vinschen.de>
+
* nlsfuncs.cc (has_modifier): MOve up in file to use in
__get_lcid_from_locale as well.
(__get_lcid_from_locale): Handle no_NO locale as alias for nn_NO.
diff --git a/winsup/cygwin/nlsfuncs.cc b/winsup/cygwin/nlsfuncs.cc
index cd79c92c3..bd061b87e 100644
--- a/winsup/cygwin/nlsfuncs.cc
+++ b/winsup/cygwin/nlsfuncs.cc
@@ -94,8 +94,7 @@ __get_lcid_from_locale (const char *name)
{
/* Unfortunately there are a couple of locales for which no form
without a Script part per RFC 4646 exists.
- Linux also supports the no_NO locale which is equivalent to
- nn_NO. */
+ Linux also supports no_NO which is equivalent to nb_NO. */
struct {
const char *loc;
const wchar_t *wloc;
@@ -105,7 +104,7 @@ __get_lcid_from_locale (const char *name)
{ "ha-NG" , L"ha-Latn-NG" },
{ "iu-CA" , L"iu-Cans-CA" },
{ "mn-CN" , L"mn-Mong-CN" },
- { "no-NO" , L"nn-NO" },
+ { "no-NO" , L"nb-NO" },
{ "sr-BA" , L"sr-Cyrl-BA" },
{ "sr-CS" , L"sr-Cyrl-CS" },
{ "sr-ME" , L"sr-Cyrl-ME" },
@@ -181,14 +180,15 @@ __get_lcid_from_locale (const char *name)
This also enables the serbian ISO 3166 territory codes which have
been changed post 2003, and maps them to the old wrong (SP was never
a valid ISO 3166 code) territory code sr_SP which fortunately has the
- same LCID as the newer sr_CS. */
+ same LCID as the newer sr_CS.
+ Linux also supports no_NO which is equivalent to nb_NO. */
struct {
const char *loc;
LCID lcid;
} ambiguous_locale[] = {
{ "bs_BA", MAKELANGID (LANG_BOSNIAN, 0x05) },
{ "nn_NO", MAKELANGID (LANG_NORWEGIAN, SUBLANG_NORWEGIAN_NYNORSK) },
- { "no_NO", MAKELANGID (LANG_NORWEGIAN, SUBLANG_NORWEGIAN_NYNORSK) },
+ { "no_NO", MAKELANGID (LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL) },
{ "sr_BA", MAKELANGID (LANG_BOSNIAN,
SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC) },
{ "sr_CS", MAKELANGID (LANG_SERBIAN, SUBLANG_SERBIAN_CYRILLIC) },