conf/75502: Fix LC_NUMERIC and LC_MONETARY for de_CH locale (patch)
Benjamin Lutz
benlutz at datacomm.ch
Sat Dec 25 19:40:26 PST 2004
>Number: 75502
>Category: conf
>Synopsis: Fix LC_NUMERIC and LC_MONETARY for de_CH locale (patch)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Dec 26 03:40:25 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Benjamin Lutz
>Release: FreeBSD 5.3-RELEASE-p2 i386
>Organization:
>Environment:
FreeBSD merlin 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #1: Thu Dec 23 16:41:30 CET 2004 maxlor at merlin:/usr/src/sys/i386/compile/MERLIN i386
>Description:
With the de_CH (swiss german) locale, numbers should look like this:
numbers: 1'234.45
monetary values: Fr. 1'234.45
Previously, the thousands separator was missing for numbers, and "." for monetary values, and "," was incorrectly used as decimal point.
>How-To-Repeat:
>Fix:
this patch adds a new file, share/numericdef/de_CH.ISO8859-1.src.
diff -ruN share.orig/monetdef/de_CH.ISO8859-1.src share/monetdef/de_CH.ISO8859-1.src
--- share.orig/monetdef/de_CH.ISO8859-1.src Tue Dec 25 19:50:48 2001
+++ share/monetdef/de_CH.ISO8859-1.src Sun Dec 26 04:14:50 2004
@@ -8,9 +8,9 @@
# currency_symbol
Fr.
# mon_decimal_point
-,
-# mon_thousands_sep
.
+# mon_thousands_sep
+'
# mon_grouping, separated by ;
3;3
# positive_sign
diff -ruN share.orig/numericdef/Makefile share/numericdef/Makefile
--- share.orig/numericdef/Makefile Sun Sep 5 06:21:07 2004
+++ share/numericdef/Makefile Sun Dec 26 04:14:50 2004
@@ -10,6 +10,7 @@
ca_ES.ISO8859-1 \
cs_CZ.ISO8859-2 \
da_DK.ISO8859-1 \
+ de_CH.ISO8859-1 \
de_DE.ISO8859-1 \
el_GR.ISO8859-7 \
en_US.ISO8859-1 \
@@ -47,11 +48,11 @@
LOCALEDIR= ${DESTDIR}/usr/share/locale
ASCIILINKS= en_US
-LATIN15LINKS= af_ZA ca_ES da_DK de_DE en_US es_ES fi_FI fr_BE fr_FR is_IS \
- it_CH it_IT nl_NL no_NO pt_PT sv_SE
+LATIN15LINKS= af_ZA ca_ES da_DK de_CH de_DE en_US es_ES fi_FI fr_BE fr_FR \
+ is_IS it_CH it_IT nl_NL no_NO pt_PT sv_SE
-UTF8_LATIN1LINKS= af_ZA ca_ES da_DK de_DE en_US es_ES fi_FI fr_BE fr_FR \
- is_IS it_IT nl_NL no_NO pt_BR pt_PT sv_SE
+UTF8_LATIN1LINKS= af_ZA ca_ES da_DK de_CH de_DE en_US es_ES fi_FI fr_BE \
+ fr_FR is_IS it_IT nl_NL no_NO pt_BR pt_PT sv_SE
UTF8_LATIN2LINKS= cs_CZ hr_HR hu_HU pl_PL ro_RO sk_SK sl_SI
UTF8_LATIN5LINKS= sr_YU uk_UA
UTF8_LATIN7LINKS= el_GR
@@ -63,7 +64,7 @@
US_LINKS= en_CA en_GB
GB_LINKS= en_AU en_NZ
FR_LINKS= fr_CA fr_CH
-DE_LINKS= de_AT de_CH
+DE_LINKS= de_AT
IT_LINKS= it_CH
BE_LINKS= nl_BE
RU_LINKS= ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5
diff -ruN share.orig/numericdef/de_CH.ISO8859-1.src share/numericdef/de_CH.ISO8859-1.src
--- share.orig/numericdef/de_CH.ISO8859-1.src Thu Jan 1 01:00:00 1970
+++ share/numericdef/de_CH.ISO8859-1.src Sun Dec 26 04:14:50 2004
@@ -0,0 +1,12 @@
+# $FreeBSD: $
+#
+# WARNING: spaces may be essential at the end of lines
+# WARNING: empty lines are essential too
+#
+# decimal_point
+.
+# thousands_sep
+'
+# grouping, separated by ;
+3;3
+# EOF
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list