Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-14-2004, 05:40 AM
|
#1
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Rep:
|
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
|
|
|
07-14-2004, 06:47 AM
|
#2
|
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690
Rep:
|
#apt-get install locales
##dpkg-reconfigure locales
#LANG user environment variable(fr_FR.UTF8)
|
|
|
07-15-2004, 03:14 AM
|
#3
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
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
|
|
|
07-15-2004, 03:22 AM
|
#4
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
07-15-2004, 04:31 AM
|
#5
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
Perhaps "apt-get install kde-i18n-fr" would fix your problem?
|
|
|
07-15-2004, 05:36 AM
|
#6
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
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 ?
|
|
|
07-15-2004, 06:01 AM
|
#7
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
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.
Last edited by Dead Parrot; 07-15-2004 at 06:33 AM.
|
|
|
07-15-2004, 07:12 AM
|
#8
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
OK, debian bug posted.
Console reconfigured, but didn't solve the problem.
Can I recompile X11 locales with my gcc ?
|
|
|
07-15-2004, 08:06 AM
|
#9
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
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
|
|
|
07-17-2004, 04:17 AM
|
#10
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
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
| ########################################################################
\______________________________________________________________________
|
|
|
07-17-2004, 04:19 AM
|
#11
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
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
| ########################################################################
\______________________________________________________________________
|
|
|
07-17-2004, 03:04 PM
|
#12
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
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 08:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|