This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/4] localedata: LC_MESSAGES.{yes,no}expr: standardize yY/nN [BZ #15262]


The vast majority of languages include yY/nN in their yes/no regexes.
Standardize the few that were missing them.
  ms_MY: noexpr: add nN
  nan_TW@latin: yesexpr: add yY
  nan_TW@latin: noexpr: add nN
  se_NO: noexpr: add nN

This also highlighted a few that were incorrectly using yY/nN because
they clashed with their localized messages:
  yo_NG: move nN (short for BáÌáÌni) from noexpr to yesexpr
  uz_UZ: yesexpr: change ^[+1YyHh] to ^[+1ÒÒHh]
  uz_UZ: noexpr: change ^[-0JjNn] to ^[-0ÐÐNnYyJj]
  uz_UZ@cyrillic: yesexpr: change ^[+1ÒÒYy] to ^[+1ÒÒHh]
  uz_UZ@cyrillic: noexpr: change ^[-0ÐÐNn] to [-0ÐÐNnYyJj]
---
 localedata/locales/ms_MY          | 2 +-
 localedata/locales/nan_TW@latin   | 4 ++--
 localedata/locales/se_NO          | 2 +-
 localedata/locales/uz_UZ          | 8 +++++---
 localedata/locales/uz_UZ@cyrillic | 7 +++++--
 localedata/locales/yo_NG          | 4 ++--
 6 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/localedata/locales/ms_MY b/localedata/locales/ms_MY
index 74dc483..f137049 100644
--- a/localedata/locales/ms_MY
+++ b/localedata/locales/ms_MY
@@ -151,7 +151,7 @@ END LC_TIME
 
 LC_MESSAGES
 yesexpr "<U005E><U005B><U002B><U0031><U0079><U0059><U005D>"
-noexpr  "<U005E><U005B><U002D><U0030><U0074><U0054><U005D>"
+noexpr  "<U005E><U005B><U002D><U0030><U0074><U0054><U006E><U004E><U005D>"
 yesstr  "<U0059><U0061>"
 nostr   "<U0054><U0069><U0064><U0061><U006B>"
 END LC_MESSAGES
diff --git a/localedata/locales/nan_TW@latin b/localedata/locales/nan_TW@latin
index a901ad5..b8bb20f 100644
--- a/localedata/locales/nan_TW@latin
+++ b/localedata/locales/nan_TW@latin
@@ -144,8 +144,8 @@ date_fmt    "<U0025><U0059><U0020><U0025><U0062><U0020><U0025><U0064><U0020><U00
 END LC_TIME
 
 LC_MESSAGES
-yesexpr "<U005E><U005B><U002B><U0031><U0073><U0053><U005D>"
-noexpr  "<U005E><U005B><U002D><U0030><U006D><U004D><U005D>"
+yesexpr "<U005E><U005B><U002B><U0031><U0079><U0059><U0073><U0053><U005D>"
+noexpr  "<U005E><U005B><U002D><U0030><U006E><U004E><U006D><U004D><U005D>"
 yesstr  "<U0053><U012B>"
 nostr   "<U004D><U0304><U002D><U0053><U012B>"
 END LC_MESSAGES
diff --git a/localedata/locales/se_NO b/localedata/locales/se_NO
index f9e4a50..6adc7d1 100644
--- a/localedata/locales/se_NO
+++ b/localedata/locales/se_NO
@@ -284,7 +284,7 @@ END LC_TIME
 
 LC_MESSAGES
 yesexpr "<U005E><U005B><U002B><U0031><U004A><U006A><U0059><U0079><U005D>"
-noexpr  "<U005E><U005B><U002D><U0030><U0049><U0069><U005D>"
+noexpr  "<U005E><U005B><U002D><U0030><U0049><U0069><U004E><U006E><U005D>"
 END LC_MESSAGES
 
 
diff --git a/localedata/locales/uz_UZ b/localedata/locales/uz_UZ
index 96f325c..6d53927 100644
--- a/localedata/locales/uz_UZ
+++ b/localedata/locales/uz_UZ
@@ -267,9 +267,11 @@ date_fmt    "<U0025><U0064><U0020><U0025><U0042><U002C><U0020><U0025><U0059><U00
 END LC_TIME
 
 LC_MESSAGES
-% NOTE: No is "yo'q"; that conflicts with English "yes"... so "jo'q" is used.
-yesexpr "<U005E><U005B><U002B><U0031><U0059><U0079><U0048><U0068><U005D>"
-noexpr  "<U005E><U005B><U002D><U0030><U004A><U006A><U004E><U006E><U005D>"
+% Note: "No" is "yoâq" which conflicts with English "yes".
+% This is why "joâq" & "jJ" is also accepted as "no".
+yesexpr "<U005E><U005B><U002B><U0031><U04B2><U04B3><U0048><U0068><U005D>"
+noexpr  "<U005E><U005B><U002D><U0030><U0419><U0439><U004E><U006E><U0059>/
+<U0079><U004A><U006A><U005D>"
 yesstr  "<U0048><U0061>"
 nostr   "<U0059><U006F><U0027><U0071>"
 END LC_MESSAGES
diff --git a/localedata/locales/uz_UZ@cyrillic b/localedata/locales/uz_UZ@cyrillic
index 11fd0c7..0f65405 100644
--- a/localedata/locales/uz_UZ@cyrillic
+++ b/localedata/locales/uz_UZ@cyrillic
@@ -270,8 +270,11 @@ date_fmt    "<U0025><U0064><U0020><U0025><U0042><U002C><U0020><U0025><U0059><U00
 END LC_TIME
 
 LC_MESSAGES
-yesexpr "<U005E><U005B><U002B><U0031><U04B2><U04B3><U0059><U0079><U005D>"
-noexpr  "<U005E><U005B><U002D><U0030><U0419><U0439><U004E><U006E><U005D>"
+% Note: "No" is "yoâq" which conflicts with English "yes".
+% This is why "joâq" & "jJ" is also accepted as "no".
+yesexpr "<U005E><U005B><U002B><U0031><U04B2><U04B3><U0048><U0068><U005D>"
+noexpr  "<U005E><U005B><U002D><U0030><U0419><U0439><U004E><U006E><U0059>/
+<U0079><U004A><U006A><U005D>"
 yesstr  "<U04B2><U0430>"
 nostr   "<U0419><U045E><U049B>"
 END LC_MESSAGES
diff --git a/localedata/locales/yo_NG b/localedata/locales/yo_NG
index 4aea66e..93d94e2 100644
--- a/localedata/locales/yo_NG
+++ b/localedata/locales/yo_NG
@@ -419,8 +419,8 @@ t_fmt_ampm  "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U00
 END LC_TIME
 
 LC_MESSAGES
-yesexpr "<U005E><U005B><U002B><U0031><U0045><U0065><U0079><U0059><U005D>"
-noexpr  "<U005E><U005B><U002D><U0030><U0072><U0052><U004F><U006F><U004B><U006B><U004E><U006E><U005D>"
+yesexpr "<U005E><U005B><U002B><U0031><U0045><U0065><U0079><U0059><U004E><U006E><U005D>"
+noexpr  "<U005E><U005B><U002D><U0030><U0072><U0052><U004F><U006F><U004B><U006B><U005D>"
 yesstr  "<U0042><U1EB9><U0301><U1EB9><U0300><U0020><U006E><U0069>"
 nostr   "<U0042><U1EB9><U0301><U1EB9><U0300><U0020><U006B><U1ECD><U0301>"
 END LC_MESSAGES
-- 
2.7.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]