On Sun, Dec 7, 2008 at 1:55 PM, Dale <[EMAIL PROTECTED]> wrote: > Mark Knecht wrote: >> My Gentoo desktop has had a locale problem for longer than I can >> remember. I haven't been able to solve it on my own, but it didn't >> seem too important. More a frustration. I switched my profile to the >> 2008.0 desktop a few days ago. Everything seems to be working but I'm >> getting more of these locale-ish messages now so I'd like to figure >> out what I've done wrong. >> >> Here's one typical message I might see when running emerge --depclean: >> >> perl: warning: Setting locale failed. >> perl: warning: Please check that your locale settings: >> LANGUAGE = (unset), >> LC_ALL = "en_US", >> LANG = (unset) >> are supported and installed on your system. >> perl: warning: Falling back to the standard locale ("C"). >> >> The line about falling back to the standard locale "C" is pretty >> standard. I also see this in k3b every time I start the program. As I >> do a lot of audio work I'd really like to make sure the CDs I burn on >> this machine will be acceptable to folks/friends/customers. Here's >> what I see in k3b: >> >> <SNIP> >> System locale charset is ANSI_X3.4-1968 >> Your system's locale charset (i.e. the charset used to encode >> filenames) is set to ANSI_X3.4-1968. It is highly unlikely that this >> has been done intentionally. Most likely the locale is not set at all. >> An invalid setting will result in problems when creating data >> projects. >> Solution: To properly set the locale charset make sure the LC_* >> environment variables are set. Normally the distribution setup tools >> take care of this. >> <SNIP> >> >> I don't have a clue what's wrong and the Gentoo pages about locale >> setup seem to make some assumptions about my understanding of what >> this does and how it does it that I'm not living up to so I really >> don't know what to provide. I'll start with this and we'll see how it >> goes. It seems that possibly I'm supposed to hand edit >> /etc/env.d/02locale but in my longish history of running Gentoo (as a >> user type) I don't believe I've ever had to edit that so I'm thinking >> I must have messed up some other config file somewhere? >> >> Thanks in advance, >> Mark >> >> lightning ~ # cat /etc/locale.gen >> en_US ISO-8859-1 >> en_US.UTF-8 UTF-8 >> lightning ~ # >> >> lightning ~ # locale >> LANG=en_US >> LC_CTYPE="en_US" >> LC_NUMERIC="en_US" >> LC_TIME="en_US" >> LC_COLLATE="en_US" >> LC_MONETARY="en_US" >> LC_MESSAGES="en_US" >> LC_PAPER="en_US" >> LC_NAME="en_US" >> LC_ADDRESS="en_US" >> LC_TELEPHONE="en_US" >> LC_MEASUREMENT="en_US" >> LC_IDENTIFICATION="en_US" >> LC_ALL= >> lightning ~ # >> >> lightning ~ # cat /etc/env.d/02locale >> LANG=en_US >> lightning ~ # >> >> >> > > Check in your /etc/make.conf file and see if you have !some! of this: > > INPUT_DEVICES="keyboard mouse" > VIDEO_CARDS="nvidia" > LINGUAS="en" > LANG="en_US" > LC_ALL="en_US.utf8" > SANE_BACKENDS="hp" > NUT_DRIVERS="cyberpower" > ALSA_CARDS="emu10k1" > CAMERAS="canon" > LCD_DEVICES="" > APACHE2_MODULES="" > > Keep in mind, your settings may vary from mine but some may need to be > just like mine. Also, if you do a emerge -pv <package-name>, it will > show what options are on and also what is available to use if nothing is > set. Not all packages will use those settings so don't be concerned if > it doesn't show them on those. > > Hope that helps. > > Dale > > :-) :-)
Dale, Thanks. My list seems considerable too small (and possibly incorrect) vs yours. I suspect it should be identical. California, only speak English. CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j2" FEATURES="parallel-fetch distclean ccache" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="realmedia quicktime dri radeon mmx mmxext sse sse2 3dnow 3dnowext gnome kde -esd -arts ladspa nptl nptlonly audiofile gimp gimpprint ppds usb alsa cdr dvd dvdr dvdread jack jack-tmpfs fluidsynth tcltk sndfile v4l v4l2 mysql flac xscreensaver -samba i8x0 mythtv apache2 -lirc mjpeg xvid xine cjk unicode vorbis ogg truetype java -eds -dts a52" ACCEPT_KEYWORDS="amd64" ALSA_CARDS="hdsp9652 hdsp" VIDEO_CARDS="radeon vesa" LINGUAS="en en_US" PORTAGE_NICENESS=19 EMERGE_DEFAULT_OPTS="--with-bdeps y" source /usr/portage/local/layman/make.conf Looking above I don't have LANG or LC_ALL entries and the LINGUAS is suspect. If I was to convert them to your settings do I then need to rebuild any apps that use them? I tried puting the emerge -epv world results into a file and greping the file. Does this list look about right? It does contain portage and k3b which are my most common offenders so I think I'm probably on the right track. Thanks! -Mark lightning ~ # emerge -epv world >EMERGE.WORLD lightning ~ # cat EMERGE.WORLD | grep LINGUAS [ebuild R ] sys-apps/portage-2.2_rc16 USE="-build -doc -epydoc (-selinux)" LINGUAS="-pl" 0 kB [0] [ebuild R ] sys-apps/man-pages-3.14 USE="nls" LINGUAS="-cs -da -de -es -fr -it -ja -nl -pl -ro -ru -zh_CN" 0 kB [0] [ebuild R ] net-misc/neon-0.28.3 USE="nls ssl zlib -doc -expat -gnutls -kerberos -pkcs11 -socks5" LINGUAS="-cs -de -fr -ja -nn -pl -ru -tr -zh_CN" 0 kB [0] [ebuild R ] app-portage/esearch-0.7.1 LINGUAS="-it" 0 kB [?=>0] [ebuild R ] app-text/xpdf-3.02-r1 USE="-nodrm" LINGUAS="-ar -el -he -ja -ko -la -ru -th -tr -zh_CN -zh_TW" 0 kB [0] [ebuild R ] www-client/mozilla-firefox-bin-2.0.0.18 USE="-restrict-javascript" LINGUAS="en en_US -af -ar -be -bg -ca -cs -da -de -el -en_GB -es -es_AR -es_ES -eu -fi -fr -fy -fy_NL -ga -ga_IE -gu -gu_IN -he -hu -it -ja -ka -ko -ku -lt -mk -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -sk -sl -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB [0] [ebuild R ] www-client/mozilla-firefox-2.0.0.18 USE="gnome java -bindist -debug -filepicker -iceweasel -ipv6 -mozdevelop -moznopango -restrict-javascript -xforms -xinerama -xprint" LINGUAS="en en_US -af -ar -be -bg -ca -cs -da -de -el -en_GB -es -es_AR -es_ES -eu -fi -fr -fy -fy_NL -ga -ga_IE -gu -gu_IN -he -hu -it -ja -ka -ko -ku -lt -mk -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -sk -sl -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB [0] [ebuild R ] net-www/mplayerplug-in-3.50 USE="firefox (multilib) nls quicktime realmedia -divx -gmedia -gtk -seamonkey -wmp -xulrunner" LINGUAS="en_US -cs -da -de -es -fr -hu -it -ja -ko -nb -nl -pl -pt_BR -ru -se -sk -tr -wa -zh_CN" 0 kB [0] [ebuild R ] net-print/cups-1.3.8-r2 USE="X acl dbus java jpeg ldap pam perl png ppds python samba ssl tiff -avahi -gnutls -kerberos -php -slp -static -xinetd -zeroconf" LINGUAS="en -de -es -et -fr -he -id -it -ja -pl -sv -zh_TW" 0 kB [0] [ebuild R ] app-office/openoffice-bin-3.0.0 USE="gnome java kde" LINGUAS="en -af -ar -as_IN -be_BY -bg -br -bs -ca -cs -da -de -dz -el -en_GB -en_ZA -es -et -fi -fr -ga -gu -he -hi_IN -hr -hu -it -ja -ka -km -ko -lt -mk -ml_IN -mr_IN -nb -ne -nl -nn -nr -ns -or_IN -pa_IN -pl -pt -pt_BR -rw -sh -sk -sl -sr -ss -st -sv -sw_TZ -ta -te_IN -tg -th -ti_ER -tr -ts -uk -ur_IN -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB [0] [ebuild R ] app-cdr/k3b-1.0.4 USE="alsa dvdr dvdread encode ffmpeg flac hal mp3 sndfile vorbis -arts -css -debug -emovix -musepack -musicbrainz -vcd -xinerama" LINGUAS="-af -ar -bg -br -bs -ca -cs -cy -da -de -el -en_GB -es -et -eu -fa -fi -fr -ga -gl -he -hi -hu -is -it -ja -ka -lt -mk -ms -nb -nds -nl -nn -pa -pl -pt -pt_BR -ru -rw -se -sk -sr [EMAIL PROTECTED] -sv -ta -tr -uk -uz -zh_CN -zh_TW" 0 kB [0] lightning ~ # cat EMERGE.WORLD | grep LANG lightning ~ # cat EMERGE.WORLD | grep LC lightning ~ #