This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/1] Fix yesexpr in en_DK locale
- From: Mike FABIAN <mfabian at redhat dot com>
- To: Akhilesh Kumar <akhilesh dot k at samsung dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 02 Aug 2017 19:11:13 +0200
- Subject: Re: [PATCH 1/1] Fix yesexpr in en_DK locale
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=mfabian at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A4BECC0587E3
- References: <CGME20170731063951epcas5p3d3910a93ab4af53aac061b7e5c04b4a6@epcas5p3.samsung.com> <1501482928-45952-1-git-send-email-akhilesh.k@samsung.com>
Akhilesh Kumar <akhilesh.k@samsung.com> wrote:
> Fix yesexpr for en_DK
>
> [#BZ 21867 ]
> locales/en_DK (LC_MESSAGES) : Fix yesexpr
> ---
> localedata/locales/en_DK | 5 +----
> 1 files changed, 1 insertions(+), 4 deletions(-)
>
> diff --git a/localedata/locales/en_DK b/localedata/locales/en_DK
> index 351c84b..2087786 100644
> --- a/localedata/locales/en_DK
> +++ b/localedata/locales/en_DK
> @@ -128,10 +128,7 @@ first_weekday 2
> END LC_TIME
>
> LC_MESSAGES
> -yesexpr "<U005E><U005B><U002B><U0031><U004A><U006A><U0073><U0053><U0079><U0059><U006F><U004F><U005D>"
> -noexpr "<U005E><U005B><U002D><U0030><U006E><U004E><U005D>"
> -yesstr "<U0079><U0065><U0073>"
> -nostr "<U006E><U006F>"
> +copy "en_US"
> END LC_MESSAGES
>
> LC_PAPER
decoded:
diff --git a/localedata/locales/en_DK b/localedata/locales/en_DK
index 351c84b..2087786 100644
--- a/localedata/locales/en_DK
+++ b/localedata/locales/en_DK
@@ -128,10 +128,7 @@ first_weekday 2
END LC_TIME
LC_MESSAGES
-yesexpr "^[+1JjsSyYoO]"
-noexpr "^[-0nN]"
-yesstr "yes"
-nostr "no"
+copy "en_US"
END LC_MESSAGES
LC_PAPER
Hm, first I thought that this might be a similar case to en_CA which has:
LC_MESSAGES
% Accept both English "Yes" and French "Oui" as Canada is bilingual.
yesexpr "^[+1yYoO]"
% Accept both Engish "No" and French "Non" as Canada is bilingual.
noexpr "^[-0nN]"
% yes - Display only the English "yes". While Canada is bilingual it would be
% difficult to display two words e.g. yes|oui, where one word is expected.
% Thus given that the majority of the population is Anglophone we use only
% the English word for yesstr.
yesstr "yes"
% no - Display only the English "no". See the rationale for yesstr.
nostr "no"
END LC_MESSAGES
But in Danish, "yes" would be "ja" and "no" would be "nej".
So
yesexpr "^[+1jJyY]"
might make sense, but I have no idea where "sSoO" could come
from. Apparently not from Faroese or Greenlandic either (These are
recognized minority languages in Denmark).
Checking with git blame shows me that en_DK always had these yesexpr and
noexpr.
So this seems to me just a mistake and “copy "en_US"” is probably OK.
--
Mike FABIAN <mfabian@redhat.com>