tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

UTF-8 for fr_*



Hi,
would anyone object if I commit the attached patch ? I'm running
with a similar patch on a NetBSD 5.0_RC system for several weeks now
(the goal was to have date/time in french UTF-8 encoded; I tested
the other LC_ variables and it seems to work fine too).
If course messages from the french catalog will be still iso-8859-1-encoded
so won't display properly, but this can be worked around by setting
LANG to C explicitely.

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           
Manuel.Bouyer%lip6.fr@localhost
     NetBSD: 26 ans d'experience feront toujours la difference
--
Index: distrib/sets/lists/base/mi
===================================================================
RCS file: /cvsroot/src/distrib/sets/lists/base/mi,v
retrieving revision 1.809
diff -u -p -u -r1.809 mi
--- distrib/sets/lists/base/mi  14 May 2009 02:37:35 -0000      1.809
+++ distrib/sets/lists/base/mi  20 May 2009 15:05:13 -0000
@@ -2911,6 +2911,13 @@
 ./usr/share/locale/fr_BE.ISO8859-15/LC_MONETARY        base-locale-fr          
nls
 ./usr/share/locale/fr_BE.ISO8859-15/LC_NUMERIC base-locale-fr          nls
 ./usr/share/locale/fr_BE.ISO8859-15/LC_TIME    base-locale-fr          nls
+./usr/share/locale/fr_BE.UTF-8                 base-locale-fr
+./usr/share/locale/fr_BE.UTF-8/LC_CTYPE                base-locale-fr          
nls
+./usr/share/locale/fr_BE.UTF-8/LC_MESSAGES     base-locale-fr
+./usr/share/locale/fr_BE.UTF-8/LC_MESSAGES/SYS_LC_MESSAGES     base-locale-fr  
nls
+./usr/share/locale/fr_BE.UTF-8/LC_MONETARY     base-locale-fr          nls
+./usr/share/locale/fr_BE.UTF-8/LC_NUMERIC      base-locale-fr          nls
+./usr/share/locale/fr_BE.UTF-8/LC_TIME         base-locale-fr          nls
 ./usr/share/locale/fr_CA.ISO8859-1             base-locale-fr
 ./usr/share/locale/fr_CA.ISO8859-1/LC_CTYPE    base-locale-fr          nls
 ./usr/share/locale/fr_CA.ISO8859-1/LC_MESSAGES base-locale-fr
@@ -2925,6 +2932,13 @@
 ./usr/share/locale/fr_CA.ISO8859-15/LC_MONETARY        base-locale-fr          
nls
 ./usr/share/locale/fr_CA.ISO8859-15/LC_NUMERIC base-locale-fr          nls
 ./usr/share/locale/fr_CA.ISO8859-15/LC_TIME    base-locale-fr          nls
+./usr/share/locale/fr_CA.UTF-8                 base-locale-fr
+./usr/share/locale/fr_CA.UTF-8/LC_CTYPE                base-locale-fr          
nls
+./usr/share/locale/fr_CA.UTF-8/LC_MESSAGES     base-locale-fr
+./usr/share/locale/fr_CA.UTF-8/LC_MESSAGES/SYS_LC_MESSAGES     base-locale-fr  
nls
+./usr/share/locale/fr_CA.UTF-8/LC_MONETARY     base-locale-fr          nls
+./usr/share/locale/fr_CA.UTF-8/LC_NUMERIC      base-locale-fr          nls
+./usr/share/locale/fr_CA.UTF-8/LC_TIME         base-locale-fr          nls
 ./usr/share/locale/fr_CH.ISO8859-1             base-locale-fr
 ./usr/share/locale/fr_CH.ISO8859-1/LC_CTYPE    base-locale-fr          nls
 ./usr/share/locale/fr_CH.ISO8859-1/LC_MESSAGES base-locale-fr
@@ -2939,6 +2953,13 @@
 ./usr/share/locale/fr_CH.ISO8859-15/LC_MONETARY        base-locale-fr          
nls
 ./usr/share/locale/fr_CH.ISO8859-15/LC_NUMERIC base-locale-fr          nls
 ./usr/share/locale/fr_CH.ISO8859-15/LC_TIME    base-locale-fr          nls
+./usr/share/locale/fr_CH.UTF-8                 base-locale-fr
+./usr/share/locale/fr_CH.UTF-8/LC_CTYPE                base-locale-fr          
nls
+./usr/share/locale/fr_CH.UTF-8/LC_MESSAGES     base-locale-fr
+./usr/share/locale/fr_CH.UTF-8/LC_MESSAGES/SYS_LC_MESSAGES     base-locale-fr  
nls
+./usr/share/locale/fr_CH.UTF-8/LC_MONETARY     base-locale-fr          nls
+./usr/share/locale/fr_CH.UTF-8/LC_NUMERIC      base-locale-fr          nls
+./usr/share/locale/fr_CH.UTF-8/LC_TIME         base-locale-fr          nls
 ./usr/share/locale/fr_FR.ISO8859-1             base-locale-fr
 ./usr/share/locale/fr_FR.ISO8859-1/LC_CTYPE    base-locale-fr          nls
 ./usr/share/locale/fr_FR.ISO8859-1/LC_MESSAGES base-locale-fr
@@ -2953,6 +2974,13 @@
 ./usr/share/locale/fr_FR.ISO8859-15/LC_MONETARY        base-locale-fr          
nls
 ./usr/share/locale/fr_FR.ISO8859-15/LC_NUMERIC base-locale-fr          nls
 ./usr/share/locale/fr_FR.ISO8859-15/LC_TIME    base-locale-fr          nls
+./usr/share/locale/fr_FR.UTF-8                 base-locale-fr
+./usr/share/locale/fr_FR.UTF-8/LC_CTYPE                base-locale-fr          
nls
+./usr/share/locale/fr_FR.UTF-8/LC_MESSAGES     base-locale-fr
+./usr/share/locale/fr_FR.UTF-8/LC_MESSAGES/SYS_LC_MESSAGES     base-locale-fr  
nls
+./usr/share/locale/fr_FR.UTF-8/LC_MONETARY     base-locale-fr          nls
+./usr/share/locale/fr_FR.UTF-8/LC_NUMERIC      base-locale-fr          nls
+./usr/share/locale/fr_FR.UTF-8/LC_TIME         base-locale-fr          nls
 ./usr/share/locale/gl                          base-locale-gl
 ./usr/share/locale/gl/LC_MESSAGES              base-locale-gl
 ./usr/share/locale/gl/LC_MESSAGES/grep.mo      base-util_locale-gl     nls
Index: etc/mtree/NetBSD.dist
===================================================================
RCS file: /cvsroot/src/etc/mtree/NetBSD.dist,v
retrieving revision 1.401
diff -u -p -u -r1.401 NetBSD.dist
--- etc/mtree/NetBSD.dist       18 May 2009 12:50:41 -0000      1.401
+++ etc/mtree/NetBSD.dist       20 May 2009 15:05:17 -0000
@@ -869,18 +869,26 @@
 ./usr/share/locale/fr_BE.ISO8859-1/LC_MESSAGES
 ./usr/share/locale/fr_BE.ISO8859-15
 ./usr/share/locale/fr_BE.ISO8859-15/LC_MESSAGES
+./usr/share/locale/fr_BE.UTF-8
+./usr/share/locale/fr_BE.UTF-8/LC_MESSAGES
 ./usr/share/locale/fr_CA.ISO8859-1
 ./usr/share/locale/fr_CA.ISO8859-1/LC_MESSAGES
 ./usr/share/locale/fr_CA.ISO8859-15
 ./usr/share/locale/fr_CA.ISO8859-15/LC_MESSAGES
+./usr/share/locale/fr_CA.UTF-8
+./usr/share/locale/fr_CA.UTF-8/LC_MESSAGES
 ./usr/share/locale/fr_CH.ISO8859-1
 ./usr/share/locale/fr_CH.ISO8859-1/LC_MESSAGES
 ./usr/share/locale/fr_CH.ISO8859-15
 ./usr/share/locale/fr_CH.ISO8859-15/LC_MESSAGES
+./usr/share/locale/fr_CH.UTF-8
+./usr/share/locale/fr_CH.UTF-8/LC_MESSAGES
 ./usr/share/locale/fr_FR.ISO8859-1
 ./usr/share/locale/fr_FR.ISO8859-1/LC_MESSAGES
 ./usr/share/locale/fr_FR.ISO8859-15
 ./usr/share/locale/fr_FR.ISO8859-15/LC_MESSAGES
+./usr/share/locale/fr_FR.UTF-8
+./usr/share/locale/fr_FR.UTF-8/LC_MESSAGES
 ./usr/share/locale/gl
 ./usr/share/locale/gl/LC_MESSAGES
 ./usr/share/locale/he
Index: share/locale/Makefile.locale
===================================================================
RCS file: /cvsroot/src/share/locale/Makefile.locale,v
retrieving revision 1.1
diff -u -p -u -r1.1 Makefile.locale
--- share/locale/Makefile.locale        2 Jan 2009 00:20:21 -0000       1.1
+++ share/locale/Makefile.locale        20 May 2009 15:06:05 -0000
@@ -113,10 +113,10 @@ CODESET_es_ES=    ISO8859-1 ISO8859-15
 CODESET_et_EE= ISO8859-15
 CODESET_eu_ES= ISO8859-1 ISO8859-15
 CODESET_fi_FI= ISO8859-1 ISO8859-15
-CODESET_fr_BE= ISO8859-1 ISO8859-15
-CODESET_fr_CA= ISO8859-1 ISO8859-15
-CODESET_fr_CH= ISO8859-1 ISO8859-15
-CODESET_fr_FR= ISO8859-1 ISO8859-15
+CODESET_fr_BE= ISO8859-1 ISO8859-15 UTF-8
+CODESET_fr_CA= ISO8859-1 ISO8859-15 UTF-8
+CODESET_fr_CH= ISO8859-1 ISO8859-15 UTF-8
+CODESET_fr_FR= ISO8859-1 ISO8859-15 UTF-8
 CODESET_hr_HR= ISO8859-2
 CODESET_hu_HU= ISO8859-2
 CODESET_hy_AM= ARMSCII-8
Index: share/locale/ctype/Makefile
===================================================================
RCS file: /cvsroot/src/share/locale/ctype/Makefile,v
retrieving revision 1.28
diff -u -p -u -r1.28 Makefile
--- share/locale/ctype/Makefile 2 Jan 2009 00:20:21 -0000       1.28
+++ share/locale/ctype/Makefile 20 May 2009 15:06:05 -0000
@@ -46,12 +46,16 @@ LOCALESRC_fi_FI.ISO8859-1=  en_US.ISO_885
 LOCALESRC_fi_FI.ISO8859-15=    en_US.DIS_8859-15
 LOCALESRC_fr_BE.ISO8859-1=     en_US.ISO_8859-1
 LOCALESRC_fr_BE.ISO8859-15=    en_US.DIS_8859-15
+LOCALESRC_fr_BE.UTF-8=         en_US.UTF-8
 LOCALESRC_fr_CA.ISO8859-1=     en_US.ISO_8859-1
 LOCALESRC_fr_CA.ISO8859-15=    en_US.DIS_8859-15
+LOCALESRC_fr_CA.UTF-8=         en_US.UTF-8
 LOCALESRC_fr_CH.ISO8859-1=     en_US.ISO_8859-1
 LOCALESRC_fr_CH.ISO8859-15=    en_US.DIS_8859-15
+LOCALESRC_fr_CH.UTF-8=         en_US.UTF-8
 LOCALESRC_fr_FR.ISO8859-1=     en_US.ISO_8859-1
 LOCALESRC_fr_FR.ISO8859-15=    en_US.DIS_8859-15
+LOCALESRC_fr_FR.UTF-8=         en_US.UTF-8
 #LOCALESRC_he_IL.UTF-8=                en_US.UTF-8
 LOCALESRC_hr_HR.ISO8859-2=     en_US.ISO_8859-2
 LOCALESRC_hu_HU.ISO8859-2=     en_US.ISO_8859-2
Index: share/locale/messages/Makefile
===================================================================
RCS file: /cvsroot/src/share/locale/messages/Makefile,v
retrieving revision 1.5
diff -u -p -u -r1.5 Makefile
--- share/locale/messages/Makefile      2 Jan 2009 00:20:21 -0000       1.5
+++ share/locale/messages/Makefile      20 May 2009 15:06:05 -0000
@@ -28,10 +28,14 @@ LOCALESRC_es_ES.ISO8859-15= es_ES.ISO885
 LOCALESRC_eu_ES.ISO8859-15=    eu_ES.ISO8859-1
 LOCALESRC_fi_FI.ISO8859-15=    fi_FI.ISO8859-1
 LOCALESRC_fr_BE.ISO8859-15=    fr_BE.ISO8859-1
+LOCALESRC_fr_BE.UTF-8=         fr_BE.ISO8859-1
 LOCALESRC_fr_CA.ISO8859-1=     fr_FR.ISO8859-1
 LOCALESRC_fr_CA.ISO8859-15=    fr_FR.ISO8859-1
+LOCALESRC_fr_CA.UTF-8=         fr_FR.ISO8859-1
 LOCALESRC_fr_CH.ISO8859-15=    fr_CH.ISO8859-1
+LOCALESRC_fr_CH.UTF-8=         fr_CH.ISO8859-1
 LOCALESRC_fr_FR.ISO8859-15=    fr_FR.ISO8859-1
+LOCALESRC_fr_FR.UTF-8=         fr_FR.ISO8859-1
 LOCALESRC_is_IS.ISO8859-15=    is_IS.ISO8859-1
 LOCALESRC_it_CH.ISO8859-1=     it_IT.ISO8859-1
 LOCALESRC_it_CH.ISO8859-15=    it_IT.ISO8859-1
Index: share/locale/monetary/Makefile
===================================================================
RCS file: /cvsroot/src/share/locale/monetary/Makefile,v
retrieving revision 1.5
diff -u -p -u -r1.5 Makefile
--- share/locale/monetary/Makefile      2 Jan 2009 00:20:21 -0000       1.5
+++ share/locale/monetary/Makefile      20 May 2009 15:06:05 -0000
@@ -25,10 +25,14 @@ LOCALESRC_eu_ES.ISO8859-1=  es_ES.ISO8859
 LOCALESRC_eu_ES.ISO8859-15=    es_ES.ISO8859-1
 LOCALESRC_fi_FI.ISO8859-15=    fi_FI.ISO8859-1
 LOCALESRC_fr_BE.ISO8859-15=    fr_BE.ISO8859-1
+LOCALESRC_fr_BE.UTF-8=         fr_BE.ISO8859-1
 LOCALESRC_fr_CA.ISO8859-15=    fr_CA.ISO8859-1
+LOCALESRC_fr_CA.UTF-8=         fr_CA.ISO8859-1
 LOCALESRC_fr_CH.ISO8859-1=     de_CH.ISO8859-1
 LOCALESRC_fr_CH.ISO8859-15=    de_CH.ISO8859-1
+LOCALESRC_fr_CH.UTF-8=         de_CH.ISO8859-1
 LOCALESRC_fr_FR.ISO8859-15=    fr_FR.ISO8859-1
+LOCALESRC_fr_FR.UTF-8=         fr_FR.ISO8859-1
 LOCALESRC_is_IS.ISO8859-15=    is_IS.ISO8859-1
 LOCALESRC_it_CH.ISO8859-1=     de_CH.ISO8859-1
 LOCALESRC_it_CH.ISO8859-15=    de_CH.ISO8859-1
Index: share/locale/numeric/Makefile
===================================================================
RCS file: /cvsroot/src/share/locale/numeric/Makefile,v
retrieving revision 1.4
diff -u -p -u -r1.4 Makefile
--- share/locale/numeric/Makefile       2 Jan 2009 00:20:23 -0000       1.4
+++ share/locale/numeric/Makefile       20 May 2009 15:06:05 -0000
@@ -32,11 +32,15 @@ LOCALESRC_es_ES.ISO8859-15= es_ES.ISO885
 LOCALESRC_eu_ES.ISO8859-15=    eu_ES.ISO8859-1
 LOCALESRC_fi_FI.ISO8859-15=    fi_FI.ISO8859-1
 LOCALESRC_fr_BE.ISO8859-15=    fr_BE.ISO8859-1
+LOCALESRC_fr_BE.UTF-8=         fr_BE.ISO8859-1
 LOCALESRC_fr_CA.ISO8859-1=     fr_FR.ISO8859-1
 LOCALESRC_fr_CA.ISO8859-15=    fr_FR.ISO8859-1
+LOCALESRC_fr_CA.UTF-8=         fr_FR.ISO8859-1
 LOCALESRC_fr_CH.ISO8859-1=     fr_FR.ISO8859-1
 LOCALESRC_fr_CH.ISO8859-15=    fr_FR.ISO8859-1
+LOCALESRC_fr_CH.UTF-8=         fr_FR.ISO8859-1
 LOCALESRC_fr_FR.ISO8859-15=    fr_FR.ISO8859-1
+LOCALESRC_fr_FR.UTF-8=         fr_FR.ISO8859-1
 #LOCALESRC_he_IL.UTF-8=                en_US.US-ASCII
 LOCALESRC_is_IS.ISO8859-15=    is_IS.ISO8859-1
 LOCALESRC_it_CH.ISO8859-1=     it_IT.ISO8859-1
Index: share/locale/time/Makefile
===================================================================
RCS file: /cvsroot/src/share/locale/time/Makefile,v
retrieving revision 1.5
diff -u -p -u -r1.5 Makefile
--- share/locale/time/Makefile  2 Jan 2009 00:20:23 -0000       1.5
+++ share/locale/time/Makefile  20 May 2009 15:06:05 -0000
@@ -30,10 +30,13 @@ LOCALESRC_eu_ES.ISO8859-15= eu_ES.ISO885
 LOCALESRC_fi_FI.ISO8859-15=    fi_FI.ISO8859-1
 LOCALESRC_fr_BE.ISO8859-1=     fr_FR.ISO8859-1
 LOCALESRC_fr_BE.ISO8859-15=    fr_FR.ISO8859-1
+LOCALESRC_fr_BE.UTF-8=         fr_FR.UTF-8
 LOCALESRC_fr_CA.ISO8859-1=     fr_FR.ISO8859-1
 LOCALESRC_fr_CA.ISO8859-15=    fr_FR.ISO8859-1
+LOCALESRC_fr_CA.UTF-8=         fr_FR.UTF-8
 LOCALESRC_fr_CH.ISO8859-1=     fr_FR.ISO8859-1
 LOCALESRC_fr_CH.ISO8859-15=    fr_FR.ISO8859-1
+LOCALESRC_fr_CH.UTF-8=         fr_FR.UTF-8
 LOCALESRC_fr_FR.ISO8859-15=    fr_FR.ISO8859-1
 LOCALESRC_is_IS.ISO8859-15=    is_IS.ISO8859-1
 LOCALESRC_it_CH.ISO8859-1=     it_IT.ISO8859-1


Home | Main Index | Thread Index | Old Index