d8307d
Short description: Add C.UTF-8 support.
d8307d
Author(s): Fedora glibc team <glibc@lists.fedoraproject.org>
d8307d
Origin: PATCH
d8307d
Upstream status: not-submitted
d8307d
d8307d
This patch needs to upstream as part of Carlos O'Donell
d8307d
<carlos@redhat.com>'s work on enabling upstream C.UTF-8 support. This
d8307d
work is currently blocked on cleaning up the test results to prove that
d8307d
full code-point sorting is working as intended.
d8307d
d8307d
Note that this patch does not provide full code-point sorting as
d8307d
expected.
d8307d
d8307d
This patch needs to upstream as soon as possible since it would be nice
d8307d
to have this in F29 and fixed.
d8307d
d8307d
From 2eda7b462b415105f5a05c1323372d4e39d46439 Mon Sep 17 00:00:00 2001
d8307d
From: Mike FABIAN <mfabian@redhat.com>
d8307d
Date: Mon, 10 Aug 2015 15:58:12 +0200
d8307d
Subject: [PATCH] Add a C.UTF-8 locale
d8307d
d8307d
---
d8307d
 localedata/SUPPORTED |   1 +
d8307d
 localedata/locales/C | 238 +++++++++++++++++++++++++++++++++++++++++++++++++++
d8307d
 2 files changed, 239 insertions(+)
d8307d
 create mode 100644 localedata/locales/C
d8307d
d8307d
diff --git a/localedata/SUPPORTED b/localedata/SUPPORTED
d8307d
index 8ca023e..2a78391 100644
d8307d
--- a/localedata/SUPPORTED
d8307d
+++ b/localedata/SUPPORTED
d8307d
@@ -1,6 +1,7 @@
d8307d
 # This file names the currently supported and somewhat tested locales.
d8307d
 # If you have any additions please file a glibc bug report.
d8307d
 SUPPORTED-LOCALES=\
d8307d
+C.UTF-8/UTF-8 \
d8307d
 aa_DJ.UTF-8/UTF-8 \
d8307d
 aa_DJ/ISO-8859-1 \
d8307d
 aa_ER/UTF-8 \
d8307d
diff --git a/localedata/locales/C b/localedata/locales/C
d8307d
new file mode 100644
d8307d
index 0000000..fdf460e
d8307d
--- /dev/null
d8307d
+++ b/localedata/locales/C
d8307d
@@ -0,0 +1,238 @@
d8307d
+escape_char /
d8307d
+comment_char %
d8307d
+% Locale for C locale in UTF-8
d8307d
+
d8307d
+LC_IDENTIFICATION
d8307d
+title      "C locale"
d8307d
+source     ""
d8307d
+address    ""
d8307d
+contact    ""
d8307d
+email      "mfabian@redhat.com"
d8307d
+tel        ""
d8307d
+fax        ""
d8307d
+language   "C"
d8307d
+territory  ""
d8307d
+revision   "1.0"
d8307d
+date       "2015-08-10"
d8307d
+%
d8307d
+category  "i18n:2012";LC_IDENTIFICATION
d8307d
+category  "i18n:2012";LC_CTYPE
d8307d
+category  "i18n:2012";LC_COLLATE
d8307d
+category  "i18n:2012";LC_TIME
d8307d
+category  "i18n:2012";LC_NUMERIC
d8307d
+category  "i18n:2012";LC_MONETARY
d8307d
+category  "i18n:2012";LC_MESSAGES
d8307d
+category  "i18n:2012";LC_PAPER
d8307d
+category  "i18n:2012";LC_NAME
d8307d
+category  "i18n:2012";LC_ADDRESS
d8307d
+category  "i18n:2012";LC_TELEPHONE
d8307d
+category  "i18n:2012";LC_MEASUREMENT
d8307d
+END LC_IDENTIFICATION
d8307d
+
d8307d
+LC_CTYPE
d8307d
+copy "i18n"
d8307d
+
d8307d
+translit_start
d8307d
+include "translit_combining";""
d8307d
+translit_end
d8307d
+
d8307d
+END LC_CTYPE
d8307d
+
d8307d
+LC_COLLATE
d8307d
+order_start forward
d8307d
+<U0000>
d8307d
+..
d8307d
+<UFFFF>
d8307d
+<U10000>
d8307d
+..
d8307d
+<U1FFFF>
d8307d
+<U20000>
d8307d
+..
d8307d
+<U2FFFF>
d8307d
+<UE0000>
d8307d
+..
d8307d
+<UEFFFF>
d8307d
+<UF0000>
d8307d
+..
d8307d
+<UFFFFF>
d8307d
+<U100000>
d8307d
+..
d8307d
+<U10FFFF>
d8307d
+UNDEFINED
d8307d
+order_end
d8307d
+END LC_COLLATE
d8307d
+
d8307d
+LC_MONETARY
d8307d
+% This is the 14652 i18n fdcc-set definition for
d8307d
+% the LC_MONETARY category
d8307d
+% (except for the int_curr_symbol and currency_symbol, they are empty in
d8307d
+% the 14652 i18n fdcc-set definition and also empty in
d8307d
+% glibc/locale/C-monetary.c. But localedef complains in that case).
d8307d
+%
d8307d
+% Using "USD" for int_curr_symbol. But maybe "XXX" would be better?
d8307d
+% XXX is "No currency" (https://en.wikipedia.org/wiki/ISO_4217)
d8307d
+int_curr_symbol     "<U0055><U0053><U0044><U0020>"
d8307d
+% Using "$" for currency_symbol. But maybe <U00A4> would be better?
d8307d
+% U+00A4 is the "generic currency symbol"
d8307d
+% (https://en.wikipedia.org/wiki/Currency_sign_%28typography%29)
d8307d
+currency_symbol     "<U0024>"
d8307d
+mon_decimal_point   "<U002E>"
d8307d
+mon_thousands_sep   ""
d8307d
+mon_grouping        -1
d8307d
+positive_sign       ""
d8307d
+negative_sign       "<U002D>"
d8307d
+int_frac_digits     -1
d8307d
+frac_digits         -1
d8307d
+p_cs_precedes       -1
d8307d
+int_p_sep_by_space  -1
d8307d
+p_sep_by_space      -1
d8307d
+n_cs_precedes       -1
d8307d
+int_n_sep_by_space  -1
d8307d
+n_sep_by_space      -1
d8307d
+p_sign_posn         -1
d8307d
+n_sign_posn         -1
d8307d
+%
d8307d
+END LC_MONETARY
d8307d
+
d8307d
+LC_NUMERIC
d8307d
+% This is the POSIX Locale definition for
d8307d
+% the LC_NUMERIC category.
d8307d
+%
d8307d
+decimal_point   "<U002E>"
d8307d
+thousands_sep   ""
d8307d
+grouping        -1
d8307d
+END LC_NUMERIC
d8307d
+
d8307d
+LC_TIME
d8307d
+% This is the POSIX Locale definition for
d8307d
+% the LC_TIME category.
d8307d
+%
d8307d
+% Abbreviated weekday names (%a)
d8307d
+abday       "<U0053><U0075><U006E>";"<U004D><U006F><U006E>";/
d8307d
+            "<U0054><U0075><U0065>";"<U0057><U0065><U0064>";/
d8307d
+            "<U0054><U0068><U0075>";"<U0046><U0072><U0069>";/
d8307d
+            "<U0053><U0061><U0074>"
d8307d
+
d8307d
+% Full weekday names (%A)
d8307d
+day         "<U0053><U0075><U006E><U0064><U0061><U0079>";/
d8307d
+            "<U004D><U006F><U006E><U0064><U0061><U0079>";/
d8307d
+            "<U0054><U0075><U0065><U0073><U0064><U0061><U0079>";/
d8307d
+            "<U0057><U0065><U0064><U006E><U0065><U0073><U0064><U0061><U0079>";/
d8307d
+            "<U0054><U0068><U0075><U0072><U0073><U0064><U0061><U0079>";/
d8307d
+            "<U0046><U0072><U0069><U0064><U0061><U0079>";/
d8307d
+            "<U0053><U0061><U0074><U0075><U0072><U0064><U0061><U0079>"
d8307d
+
d8307d
+% Abbreviated month names (%b)
d8307d
+abmon       "<U004A><U0061><U006E>";"<U0046><U0065><U0062>";/
d8307d
+            "<U004D><U0061><U0072>";"<U0041><U0070><U0072>";/
d8307d
+            "<U004D><U0061><U0079>";"<U004A><U0075><U006E>";/
d8307d
+            "<U004A><U0075><U006C>";"<U0041><U0075><U0067>";/
d8307d
+            "<U0053><U0065><U0070>";"<U004F><U0063><U0074>";/
d8307d
+            "<U004E><U006F><U0076>";"<U0044><U0065><U0063>"
d8307d
+
d8307d
+% Full month names (%B)
d8307d
+mon         "<U004A><U0061><U006E><U0075><U0061><U0072><U0079>";/
d8307d
+            "<U0046><U0065><U0062><U0072><U0075><U0061><U0072><U0079>";/
d8307d
+            "<U004D><U0061><U0072><U0063><U0068>";/
d8307d
+            "<U0041><U0070><U0072><U0069><U006C>";/
d8307d
+            "<U004D><U0061><U0079>";/
d8307d
+            "<U004A><U0075><U006E><U0065>";/
d8307d
+            "<U004A><U0075><U006C><U0079>";/
d8307d
+            "<U0041><U0075><U0067><U0075><U0073><U0074>";/
d8307d
+            "<U0053><U0065><U0070><U0074><U0065><U006D><U0062><U0065><U0072>";/
d8307d
+            "<U004F><U0063><U0074><U006F><U0062><U0065><U0072>";/
d8307d
+            "<U004E><U006F><U0076><U0065><U006D><U0062><U0065><U0072>";/
d8307d
+            "<U0044><U0065><U0063><U0065><U006D><U0062><U0065><U0072>"
d8307d
+
d8307d
+% Week description, consists of three fields:
d8307d
+% 1. Number of days in a week.
d8307d
+% 2. Gregorian date that is a first weekday (19971130 for Sunday, 19971201 for Monday).
d8307d
+% 3. The weekday number to be contained in the first week of the year.
d8307d
+%
d8307d
+% ISO 8601 conforming applications should use the values 7, 19971201 (a
d8307d
+% Monday), and 4 (Thursday), respectively.
d8307d
+week    7;19971201;4
d8307d
+first_weekday	1
d8307d
+first_workday	1
d8307d
+
d8307d
+% Appropriate date and time representation (%c)
d8307d
+%	"%a %b %e %H:%M:%S %Y"
d8307d
+d_t_fmt "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065><U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0059>"
d8307d
+
d8307d
+% Appropriate date representation (%x)
d8307d
+%	"%m/%d/%y"
d8307d
+d_fmt   "<U0025><U006D><U002F><U0025><U0064><U002F><U0025><U0079>"
d8307d
+
d8307d
+% Appropriate time representation (%X)
d8307d
+%	"%H:%M:%S"
d8307d
+t_fmt   "<U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053>"
d8307d
+
d8307d
+% Appropriate AM/PM time representation (%r)
d8307d
+%	"%I:%M:%S %p"
d8307d
+t_fmt_ampm "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0070>"
d8307d
+
d8307d
+% Equivalent of AM/PM (%p)      "AM"/"PM"
d8307d
+%
d8307d
+am_pm	"<U0041><U004D>";"<U0050><U004D>"
d8307d
+
d8307d
+% Appropriate date representation (date(1))   "%a %b %e %H:%M:%S %Z %Y"
d8307d
+date_fmt	"<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065><U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U005A><U0020><U0025><U0059>"
d8307d
+END LC_TIME
d8307d
+
d8307d
+LC_MESSAGES
d8307d
+% This is the POSIX Locale definition for
d8307d
+% the LC_NUMERIC category.
d8307d
+%
d8307d
+yesexpr "<U005E><U005B><U0079><U0059><U005D>"
d8307d
+noexpr  "<U005E><U005B><U006E><U004E><U005D>"
d8307d
+yesstr  "<U0059><U0065><U0073>"
d8307d
+nostr   "<U004E><U006F>"
d8307d
+END LC_MESSAGES
d8307d
+
d8307d
+LC_PAPER
d8307d
+% This is the ISO/IEC 14652 "i18n" definition for
d8307d
+% the LC_PAPER category.
d8307d
+% (A4 paper, this is also used in the built in C/POSIX
d8307d
+% locale in glibc/locale/C-paper.c)
d8307d
+height   297
d8307d
+width    210
d8307d
+END LC_PAPER
d8307d
+
d8307d
+LC_NAME
d8307d
+% This is the ISO/IEC 14652 "i18n" definition for
d8307d
+% the LC_NAME category.
d8307d
+% "%p%t%g%t%m%t%f"
d8307d
+% (also used in the built in C/POSIX locale in glibc/locale/C-name.c)
d8307d
+name_fmt    "<U0025><U0070><U0025><U0074><U0025><U0067><U0025><U0074>/
d8307d
+<U0025><U006D><U0025><U0074><U0025><U0066>"
d8307d
+END LC_NAME
d8307d
+
d8307d
+LC_ADDRESS
d8307d
+% This is the ISO/IEC 14652 "i18n" definition for
d8307d
+% the LC_ADDRESS category.
d8307d
+% "%a%N%f%N%d%N%b%N%s %h %e %r%N%C-%z %T%N%c%N"
d8307d
+% (also used in the built in C/POSIX locale in glibc/locale/C-address.c)
d8307d
+postal_fmt    "<U0025><U0061><U0025><U004E><U0025><U0066><U0025><U004E>/
d8307d
+<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
d8307d
+<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
d8307d
+<U004E><U0025><U0043><U002D><U0025><U007A><U0020><U0025><U0054><U0025>/
d8307d
+<U004E><U0025><U0063><U0025><U004E>"
d8307d
+END LC_ADDRESS
d8307d
+
d8307d
+LC_TELEPHONE
d8307d
+% This is the ISO/IEC 14652 "i18n" definition for
d8307d
+% the LC_TELEPHONE category.
d8307d
+% "+%c %a %l"
d8307d
+tel_int_fmt    "<U002B><U0025><U0063><U0020><U0025><U0061><U0020><U0025>/
d8307d
+<U006C>"
d8307d
+% (also used in the built in C/POSIX locale in glibc/locale/C-telephone.c)
d8307d
+END LC_TELEPHONE
d8307d
+
d8307d
+LC_MEASUREMENT
d8307d
+% This is the ISO/IEC 14652 "i18n" definition for
d8307d
+% the LC_MEASUREMENT category.
d8307d
+% (same as in the built in C/POSIX locale in glibc/locale/C-measurement.c)
d8307d
+%metric
d8307d
+measurement    1
d8307d
+END LC_MEASUREMENT
d8307d
+
d8307d
-- 
d8307d
2.4.3
d8307d