LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   X11 / UTF-8 locale seems missing 'fr_FR.UTF-8' (http://www.linuxquestions.org/questions/debian-26/x11-utf-8-locale-seems-missing-fr_fr-utf-8-a-204831/)

chrsitophermann 07-14-2004 05:40 AM

X11 / UTF-8 locale seems missing 'fr_FR.UTF-8'
 
Hi,

In my /usr/XF86R6/lib/X11/locales directory I don't have fr_FR.UTF-8, nor do I have it in my alias file. This is however my C locale. I'm having a hell of a headache because I can't configure my X11 locale to fr_FR.UTF8, but don't know what to do.

Should I generate or download the locale from someplace ? Should I re-use the C locale (is that possible ?) ? Once I get a fr_FR.UTF-8 locale, how do I configure it by default in X11 ? Or am I missing something ?

Please help

Chris

mrcheeks 07-14-2004 06:47 AM

#apt-get install locales
##dpkg-reconfigure locales
#LANG user environment variable(fr_FR.UTF8)

chrsitophermann 07-15-2004 03:14 AM

The above post reffers to configuring the C locales, which seem straightforward.
The problem occurs when the X11 locale does not exist.
The prodcedure above only works for me on console logins, but not on my X11/KDE configuration.
I believe it to be a X11 question because the configuration problem concerns
/usr/XF86R6/lib/X11/locales
If I'm missing something, please inform me.

Chris

chrsitophermann 07-15-2004 03:22 AM

X11 fr_FR.UTF-8 locale unavailable
 
Hi,

I use KDE on X11. Some applications support UTF-8, others seem to rely on the system 'locale'. My language environnement is French and Latin-15 (iso-8...-15).

The problem is that the X11 environnement does not have fr_FR.UTF-8 as an available option. There is pl_PL.UTF-8 and english I think. I'm talking about my /usr/XF86R6/lib/X11/locales directory and /usr/XF86R6/lib/X11/locales/aliases... file.

Does X11 use C locales (I don't think so for some reason) ? How can I get fr_FR.UTF-8 support for X11 and KDE and, emacs which relies on the previous two ?

Should I generate or download the locale from someplace ? Should I re-use the C locale (is that possible ?) ? Once I get a fr_FR.UTF-8 locale, how do I configure it by default in X11 ? Or am I missing something ?

Please help

Chris

P.S. I posted this to the debian list, but here may be a better location. It doesn't seem to be Debian-specific.
Otherwise, th Linux general forum may be appropriate.

Dead Parrot 07-15-2004 04:31 AM

Perhaps "apt-get install kde-i18n-fr" would fix your problem?

chrsitophermann 07-15-2004 05:36 AM

apt-get install kde-i18n-fr
is already installed.
I think it may be a wierd X11 configuration problem.

The UTF-8 problems only occur in emacs (stuff downloaded with zopeedit) and in mozilla (email sent in UTF-8). They may be partially encoded in UTF-8 ?

The problems occur in blackbox as well as kde.

Please continue thinking.

Here is another interesting symptom. When I use konsole and type ls --help, I get this ::
Afficher les informations au sujet des FICHIERS (du répertoire
courant par défaut). Trier les entrées alphabétiquement si aucune
des options -cftuSUX ou --sort n'est utilisée.

Les arguments obligatoires pour les options de formes longues le sont aussi
pour les options de formes courtes.
-a, --all ne pas cacher les entrées débutant par .

I shouldn't have gotton that like that. The é stuff should have been .
Again, Mozilla will be able to read Web pages in UTF 8.

Would anyone know where these problems are coming from ?

Dead Parrot 07-15-2004 06:01 AM

The symptoms you describe make me suspect that there's a bug in the fr_FR.UTF-8 locale. You might want to check if this bug has already been reported ( http://bugs.debian.org/cgi-bin/pkgre...les&archive=no ), and if this is not the case, then you should report the problems you're having so that the bug can be fixed as soon as possible. You should report this possible bug against the "locales" package.

http://www.debian.org/Bugs/


Edit:

An additional thought came to me -- since you tell that you don't get correct French characters in konsole (or in xterm under blackbox, I assume?), you might want to do "dpkg-reconfigure console-data" before making a bug report. In your posts you don't mention if you have already (re)configured the console-common or console-data packages.

chrsitophermann 07-15-2004 07:12 AM

OK, debian bug posted.
Console reconfigured, but didn't solve the problem.
Can I recompile X11 locales with my gcc ?

Dead Parrot 07-15-2004 08:06 AM

Quote:

Can I recompile X11 locales with my gcc ?
I have no experience on recompiling locales so I cannot really say if it will fix anything. However, there's a Debian specific HOWTO on using UTF-8 coded locales. If you haven't seen this before, you might want to check it out:

http://melkor.dnp.fmph.uniba.sk/~gar...WTO/howto.html

chrsitophermann 07-17-2004 04:17 AM

The Unicode HOW-TO, the advice about unicode_start and LatArCyrHeb in the /~.bash_profile file, the mule-ucs package together did the trick.

Many thanks.

I do not know, what you want, but read the UNICODE-HOWTO.

and write in your

____ ( '/home/michifr/.bash_profile' ) _______________________________
/
| export LANG=fr_FR.UTF-8
| export LANGUAGE=fr_FR.UTF-8
| export LC_MESSAGES=fr_FR.UTF-8
|
| echo "Starte Unicode..."
| unicode_start
| echo "Lade UNICODE Console Font und Tastaturlayout..."
| consolechars -v --font=LatArCyrHeb-16
| loadkeys -s de-latin1
\______________________________________________________________________

and in your

____ ( '/home/michifr/.bash_logout' ) ________________________________
/
| ########################################################################
| # Do not edit this lines.
| #
| unicode_stop
| loadkeys -s de-latin1
| consolechars -v --font=lat0-16
| #
| # Do not edit the lines above
| ########################################################################
\______________________________________________________________________

chrsitophermann 07-17-2004 04:19 AM

The Unicode HOW-TO, the advice about unicode_start and LatArCyrHeb in the /~.bash_profile file, the mule-ucs package together did the trick.

Many thanks.

I do not know, what you want, but read the UNICODE-HOWTO.

and write in your

____ ( '/home/michifr/.bash_profile' ) _______________________________
/
| export LANG=fr_FR.UTF-8
| export LANGUAGE=fr_FR.UTF-8
| export LC_MESSAGES=fr_FR.UTF-8
|
| echo "Starte Unicode..."
| unicode_start
| echo "Lade UNICODE Console Font und Tastaturlayout..."
| consolechars -v --font=LatArCyrHeb-16
| loadkeys -s de-latin1
\______________________________________________________________________

and in your

____ ( '/home/michifr/.bash_logout' ) ________________________________
/
| ########################################################################
| # Do not edit this lines.
| #
| unicode_stop
| loadkeys -s de-latin1
| consolechars -v --font=lat0-16
| #
| # Do not edit the lines above
| ########################################################################
\______________________________________________________________________

HappyTux 07-17-2004 03:04 PM

If you had wanted to use the locales system wide then you should have installed the package localeconf and choose the locale you wanted during the setup. The settings are then saved in the file /etc/environment.

Code:

>$ cat /etc/environment
### BEGIN DEBCONF SECTION FOR localeconf
# Do not edit within this region if you want your changes to be preserved
# by debconf.  Instead, make changes before the "### BEGIN DEBCONF SECTION
# FOR localeconf" line, and/or after the "### END DEBCONF SECTION FOR
# localeconf" line.
LANG=en_CA.UTF-8
LC_COLLATE=C
### END DEBCONF SECTION FOR localeconf

You may also want to install the package localepurge to rid the system of the excess locales and if you want man pages in the languages/locales you do not need. Not only will this save time during upgrades when you have to regenerate locales it will save you the errors that seem to happen in some of the locales that are on the system thus killing off your upgrade. If you install localepurge you will want to check in the file /etc/locale.gen to make sure that only the locales you selected to keep are present in the file or they will be re-generated in spite of the settings you choose during the setup of localepurge.


All times are GMT -5. The time now is 01:03 AM.