View previous topic :: View next topic |
Author |
Message |
kdvgent Guru
Joined: 29 Sep 2004 Posts: 352 Location: Belgium
|
Posted: Fri Apr 21, 2006 12:18 pm Post subject: Problems with "locale" [SOLVED] |
|
|
Earlier this week I tried to recompile my system with the gcc 4.2 snapshot. As this did not succeed, I recompiled my system with gcc 4.1.
Since then I have problems with my "locale" settings.
Example 1
Quote: | gentoo ~ # emerge --info
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "nl_BE.UTF-8",
LC_ADDRESS = "nl_BE.UTF-8",
LC_MONETARY = "nl_BE.UTF-8@euro",
LC_NUMERIC = "nl_BE.UTF-8",
LC_TELEPHONE = "nl_BE.UTF-8",
LC_MESSAGES = "en_US.UTF-8",
LC_IDENTIFICATION = "nl_BE.UTF-8",
LC_COLLATE = "nl_BE.UTF-8",
LC_MEASUREMENT = "nl_BE.UTF-8",
LC_CTYPE = "nl_BE.UTF-8",
LC_TIME = "nl_BE.UTF-8",
LC_NAME = "nl_BE.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
>>> cfg-update-1.8.0-r3 : Building checksum index... (takes a few seconds) done!
Portage 2.1_pre7-r5 (default-linux/amd64/2005.1, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre17
dev-lang/python: 2.3.5-r2, 2.4.2-r1
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r2
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.be.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa apache2 avi berkdb bitmap-fonts bzip2 cdparanoia cdr clamav cli crypt cups curl curlwrappers dbus dri dts dvd dvdread eds emacs emul-linux-x86 encode fam fbcon ffmpeg firefox flac foomaticdb fortran gd gif gimp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl idn imagemagick imlib java javascript jpeg lcms lzw lzw-tiff mad mikmod mime mono moznocompose moznoirc moznomail mozsvg mp3 mpeg msn ncurses nls nptl nptlonly ogg opengl pam pcre pdf pdflib perl php png ppds pppd python quicktime readline reflection scanner sdl session snmp spell spl sqlite ssl svg t1lib tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis w32codecs wmf wxwindows xml xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_vesa video_cards_fbdev video_cards_radeon video_cards_fglrx"
Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
|
Example 2
Quote: | gentoo ~ # gedit /etc/make
(gedit:31503): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(gedit:31503): Gdk-WARNING **: locale not supported by C library
|
Output locale
Quote: | gentoo ~ # locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=nl_BE.UTF-8
LC_NUMERIC=nl_BE.UTF-8
LC_TIME=nl_BE.UTF-8
LC_COLLATE=nl_BE.UTF-8
LC_MONETARY=nl_BE.UTF-8@euro
LC_MESSAGES=en_US.UTF-8
LC_PAPER=nl_BE.UTF-8
LC_NAME=nl_BE.UTF-8
LC_ADDRESS=nl_BE.UTF-8
LC_TELEPHONE=nl_BE.UTF-8
LC_MEASUREMENT=nl_BE.UTF-8
LC_IDENTIFICATION=nl_BE.UTF-8
LC_ALL=
|
And my /etc/locales.build file (glibc is build with the USE-flag userlocales
Quote: | gentoo ~ # cat /etc/locales.build
# This file names the list of locales to be built when glibc is installed.
# The format is <locale>/<charmap>, where <locale> is a locale from the
# /usr/share/i18n/locales directory, and <charmap> is name of one of the files
# in /usr/share/i18n/charmaps/. All blank lines and lines starting with # are
# ignored. Here is an example:
# en_US/ISO-8859-1
en_US.UTF-8/UTF-8
nl_BE.UTF-8/UTF-8
fr_BE.UTF-8/UTF-8
en_US/ISO-8859-1
nl_BE/ISO-8859-1
fr_BE/ISO-8859-1
nl_BE@euro/ISO-8859-15
fr_BE@euro/ISO-8859-15
|
Help please. Many thanks in advance
Last edited by kdvgent on Sat Apr 22, 2006 6:37 pm; edited 2 times in total |
|
Back to top |
|
|
kdvgent Guru
Joined: 29 Sep 2004 Posts: 352 Location: Belgium
|
Posted: Sat Apr 22, 2006 11:15 am Post subject: Solution |
|
|
Somewhere within the process of re-emerging a few times my environment, something went wrong.
For the documentation "How to use UTF-8 with Gentoo" I did three things (as root):
1. localedef -i en_US -f UTF-8 en_US.UTF-8
2. added in /etc/env.d/02locale a line - LC_ALL="en_US.UTF-8"
3. env-update && source /etc/profile
And that got things OK again. |
|
Back to top |
|
|
kdvgent Guru
Joined: 29 Sep 2004 Posts: 352 Location: Belgium
|
Posted: Sat Apr 22, 2006 5:31 pm Post subject: Solution not working |
|
|
This solution is not working as setting LC_ALL="en_US/UTF-8" overrides all other settings.
The problem seems to be that there is no "default locale" in the system??? |
|
Back to top |
|
|
kdvgent Guru
Joined: 29 Sep 2004 Posts: 352 Location: Belgium
|
Posted: Sat Apr 22, 2006 6:39 pm Post subject: Final solution? |
|
|
Quote: | $ locale -a
C
en_GB.utf8
en_US
en_US.utf8
fr_BE
fr_BE@euro
fr_BE.utf8
nl_BE
nl_BE@euro
nl_BE.utf8
POSIX
|
Showed that one way of another, "UTF-8" (from /etc/locales.build) has become "utf8" now.
Changing /etc/env.d/02locale accordingly solved my problem. |
|
Back to top |
|
|
Mgiese Veteran
Joined: 23 Mar 2005 Posts: 1628 Location: indiana
|
Posted: Fri Jun 23, 2006 8:32 pm Post subject: Re: Final solution? |
|
|
kdvgent wrote: |
Showed that one way of another, "UTF-8" (from /etc/locales.build) has become "utf8" now.
Changing /etc/env.d/02locale accordingly solved my problem. |
i have quite similar problems.. do you mean that you have changed all entries in /etc/locales.build&/etc/env.d/02locale from UTF-8 to utf8 ? if so do i have to recompile my glibc ?
i have 2 programs that arent working right know in cause of a locale settings problem my "locale" put out this :
compi ~ # locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=de_DE.UTF-8
THX a LOT
i am using gcc 3.3.6 a default GCC _________________ I do not have a Superman complex, for I am God not Superman
Ryzen9 7950x (powersave governor) ; Geforce 3050 (70w) ; kernel 6.10.6 ; XFCE |
|
Back to top |
|
|
kdvgent Guru
Joined: 29 Sep 2004 Posts: 352 Location: Belgium
|
Posted: Sat Jun 24, 2006 6:34 am Post subject: Changes in /etc/env.d/02locale |
|
|
Yes, I have changed all UTF-8 in utf8.
See http://www.gentoo.org/doc/en/utf-8.xml on what to do next.
Hope this helps. |
|
Back to top |
|
|
Beefrum Apprentice
Joined: 23 May 2006 Posts: 234
|
Posted: Sat Jun 24, 2006 12:37 pm Post subject: |
|
|
Aiii, you are defining all af them Won't these settings be derrived from the 'base' definition once it is set Like not defining anything and then getting 'C' as the default _________________ Give adaptive answers to unknown problems! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|