1 From 2eda7b462b415105f5a05c1323372d4e39d46439 Mon Sep 17 00:00:00 2001
2 From: Mike FABIAN <mfabian@redhat.com>
3 Date: Mon, 10 Aug 2015 15:58:12 +0200
4 Subject: [PATCH] Add a C.UTF-8 locale
7 localedata/SUPPORTED | 1 +
8 localedata/locales/C | 238 +++++++++++++++++++++++++++++++++++++++++++++++++++
9 2 files changed, 239 insertions(+)
10 create mode 100644 localedata/locales/C
12 diff --git a/localedata/SUPPORTED b/localedata/SUPPORTED
13 index 8ca023e..2a78391 100644
14 --- a/localedata/SUPPORTED
15 +++ b/localedata/SUPPORTED
17 # This file names the currently supported and somewhat tested locales.
18 # If you have any additions please file a glibc bug report.
24 diff --git a/localedata/locales/C b/localedata/locales/C
26 index 0000000..fdf460e
28 +++ b/localedata/locales/C
32 +% Locale for C locale in UTF-8
39 +email "mfabian@redhat.com"
47 +category "i18n:2012";LC_IDENTIFICATION
48 +category "i18n:2012";LC_CTYPE
49 +category "i18n:2012";LC_COLLATE
50 +category "i18n:2012";LC_TIME
51 +category "i18n:2012";LC_NUMERIC
52 +category "i18n:2012";LC_MONETARY
53 +category "i18n:2012";LC_MESSAGES
54 +category "i18n:2012";LC_PAPER
55 +category "i18n:2012";LC_NAME
56 +category "i18n:2012";LC_ADDRESS
57 +category "i18n:2012";LC_TELEPHONE
58 +category "i18n:2012";LC_MEASUREMENT
59 +END LC_IDENTIFICATION
65 +include "translit_combining";""
95 +% This is the 14652 i18n fdcc-set definition for
96 +% the LC_MONETARY category
97 +% (except for the int_curr_symbol and currency_symbol, they are empty in
98 +% the 14652 i18n fdcc-set definition and also empty in
99 +% glibc/locale/C-monetary.c. But localedef complains in that case).
101 +% Using "USD" for int_curr_symbol. But maybe "XXX" would be better?
102 +% XXX is "No currency" (https://en.wikipedia.org/wiki/ISO_4217)
103 +int_curr_symbol "<U0055><U0053><U0044><U0020>"
104 +% Using "$" for currency_symbol. But maybe <U00A4> would be better?
105 +% U+00A4 is the "generic currency symbol"
106 +% (https://en.wikipedia.org/wiki/Currency_sign_%28typography%29)
107 +currency_symbol "<U0024>"
108 +mon_decimal_point "<U002E>"
109 +mon_thousands_sep ""
112 +negative_sign "<U002D>"
116 +int_p_sep_by_space -1
119 +int_n_sep_by_space -1
127 +% This is the POSIX Locale definition for
128 +% the LC_NUMERIC category.
130 +decimal_point "<U002E>"
136 +% This is the POSIX Locale definition for
137 +% the LC_TIME category.
139 +% Abbreviated weekday names (%a)
140 +abday "<U0053><U0075><U006E>";"<U004D><U006F><U006E>";/
141 + "<U0054><U0075><U0065>";"<U0057><U0065><U0064>";/
142 + "<U0054><U0068><U0075>";"<U0046><U0072><U0069>";/
143 + "<U0053><U0061><U0074>"
145 +% Full weekday names (%A)
146 +day "<U0053><U0075><U006E><U0064><U0061><U0079>";/
147 + "<U004D><U006F><U006E><U0064><U0061><U0079>";/
148 + "<U0054><U0075><U0065><U0073><U0064><U0061><U0079>";/
149 + "<U0057><U0065><U0064><U006E><U0065><U0073><U0064><U0061><U0079>";/
150 + "<U0054><U0068><U0075><U0072><U0073><U0064><U0061><U0079>";/
151 + "<U0046><U0072><U0069><U0064><U0061><U0079>";/
152 + "<U0053><U0061><U0074><U0075><U0072><U0064><U0061><U0079>"
154 +% Abbreviated month names (%b)
155 +abmon "<U004A><U0061><U006E>";"<U0046><U0065><U0062>";/
156 + "<U004D><U0061><U0072>";"<U0041><U0070><U0072>";/
157 + "<U004D><U0061><U0079>";"<U004A><U0075><U006E>";/
158 + "<U004A><U0075><U006C>";"<U0041><U0075><U0067>";/
159 + "<U0053><U0065><U0070>";"<U004F><U0063><U0074>";/
160 + "<U004E><U006F><U0076>";"<U0044><U0065><U0063>"
162 +% Full month names (%B)
163 +mon "<U004A><U0061><U006E><U0075><U0061><U0072><U0079>";/
164 + "<U0046><U0065><U0062><U0072><U0075><U0061><U0072><U0079>";/
165 + "<U004D><U0061><U0072><U0063><U0068>";/
166 + "<U0041><U0070><U0072><U0069><U006C>";/
167 + "<U004D><U0061><U0079>";/
168 + "<U004A><U0075><U006E><U0065>";/
169 + "<U004A><U0075><U006C><U0079>";/
170 + "<U0041><U0075><U0067><U0075><U0073><U0074>";/
171 + "<U0053><U0065><U0070><U0074><U0065><U006D><U0062><U0065><U0072>";/
172 + "<U004F><U0063><U0074><U006F><U0062><U0065><U0072>";/
173 + "<U004E><U006F><U0076><U0065><U006D><U0062><U0065><U0072>";/
174 + "<U0044><U0065><U0063><U0065><U006D><U0062><U0065><U0072>"
176 +% Week description, consists of three fields:
177 +% 1. Number of days in a week.
178 +% 2. Gregorian date that is a first weekday (19971130 for Sunday, 19971201 for Monday).
179 +% 3. The weekday number to be contained in the first week of the year.
181 +% ISO 8601 conforming applications should use the values 7, 19971201 (a
182 +% Monday), and 4 (Thursday), respectively.
187 +% Appropriate date and time representation (%c)
188 +% "%a %b %e %H:%M:%S %Y"
189 +d_t_fmt "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065><U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0059>"
191 +% Appropriate date representation (%x)
193 +d_fmt "<U0025><U006D><U002F><U0025><U0064><U002F><U0025><U0079>"
195 +% Appropriate time representation (%X)
197 +t_fmt "<U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053>"
199 +% Appropriate AM/PM time representation (%r)
201 +t_fmt_ampm "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0070>"
203 +% Equivalent of AM/PM (%p) "AM"/"PM"
205 +am_pm "<U0041><U004D>";"<U0050><U004D>"
207 +% Appropriate date representation (date(1)) "%a %b %e %H:%M:%S %Z %Y"
208 +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>"
212 +% This is the POSIX Locale definition for
213 +% the LC_NUMERIC category.
215 +yesexpr "<U005E><U005B><U0079><U0059><U005D>"
216 +noexpr "<U005E><U005B><U006E><U004E><U005D>"
217 +yesstr "<U0059><U0065><U0073>"
218 +nostr "<U004E><U006F>"
222 +% This is the ISO/IEC 14652 "i18n" definition for
223 +% the LC_PAPER category.
224 +% (A4 paper, this is also used in the built in C/POSIX
225 +% locale in glibc/locale/C-paper.c)
231 +% This is the ISO/IEC 14652 "i18n" definition for
232 +% the LC_NAME category.
234 +% (also used in the built in C/POSIX locale in glibc/locale/C-name.c)
235 +name_fmt "<U0025><U0070><U0025><U0074><U0025><U0067><U0025><U0074>/
236 +<U0025><U006D><U0025><U0074><U0025><U0066>"
240 +% This is the ISO/IEC 14652 "i18n" definition for
241 +% the LC_ADDRESS category.
242 +% "%a%N%f%N%d%N%b%N%s %h %e %r%N%C-%z %T%N%c%N"
243 +% (also used in the built in C/POSIX locale in glibc/locale/C-address.c)
244 +postal_fmt "<U0025><U0061><U0025><U004E><U0025><U0066><U0025><U004E>/
245 +<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
246 +<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
247 +<U004E><U0025><U0043><U002D><U0025><U007A><U0020><U0025><U0054><U0025>/
248 +<U004E><U0025><U0063><U0025><U004E>"
252 +% This is the ISO/IEC 14652 "i18n" definition for
253 +% the LC_TELEPHONE category.
255 +tel_int_fmt "<U002B><U0025><U0063><U0020><U0025><U0061><U0020><U0025>/
257 +% (also used in the built in C/POSIX locale in glibc/locale/C-telephone.c)
261 +% This is the ISO/IEC 14652 "i18n" definition for
262 +% the LC_MEASUREMENT category.
263 +% (same as in the built in C/POSIX locale in glibc/locale/C-measurement.c)