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 |
#apt-get install locales
##dpkg-reconfigure locales #LANG user environment variable(fr_FR.UTF8) |
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 |
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. |
Perhaps "apt-get install kde-i18n-fr" would fix your problem?
|
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 ? |
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. |
OK, debian bug posted.
Console reconfigured, but didn't solve the problem. Can I recompile X11 locales with my gcc ? |
Quote:
http://melkor.dnp.fmph.uniba.sk/~gar...WTO/howto.html |
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 | ######################################################################## \______________________________________________________________________ |
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 | ######################################################################## \______________________________________________________________________ |
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 |
All times are GMT -5. The time now is 05:53 AM. |