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