$ locale -a C POSIX ...but $ locale LANG=en_GB LC_CTYPE=C LC_NUMERIC=en_GB LC_TIME=en_GB LC_COLLATE=C LC_MONETARY=en_GB LC_MESSAGES=en_GB LC_PAPER="en_GB" LC_NAME="en_GB" LC_ADDRESS="en_GB" LC_TELEPHONE="en_GB" LC_MEASUREMENT="en_GB" LC_IDENTIFICATION="en_GB" LC_ALL= ...so it looks to me that the -a option isn't working correctly. BTW, the only way for me to get the above settings is to have this file: # /etc/env.d/02i18n SYSFONTACM=iso15 LC_CTYPE=C LANGUAGE=en_GB:en LC_MONETARY=en_GB LC_COLLATE=C LC_NUMERIC=en_GB SYSFONT=lat9-16 LC_TIME=en_GB LANG=en_GB LC_MESSAGES=en_GB CLOCK="UTC" # emerge info Portage 2.0.46-r5 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2,2.3.1-r3) ================================================================= System uname: 2.4.20-win4lin-r1-pnr i686 AMD Athlon(tm) XP 1900+ GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/kde/3.1/share/config:/usr/kde/3/share/config:/usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage/" USE="x86 oss 3dnow apm avi cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts tetex aalib bonobo svga ggi tcltk java guile mysql postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde opengl mozilla snmp cdr scanner doc dvd fbcon innodb maildir mbox nocardbus odbc samba slp sse tiff wmf -crypt -motif" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=athlon-xp -march=athlon-xp -pipe -mmmx -msse -m3dnow " CXXFLAGS="-O2 -mcpu=athlon-xp -march=athlon-xp -pipe -mmmx -msse -m3dnow " ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="true" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" BTW, I have glibc-2.3.1-r2 *and* -r3. Is there a safe way to clean this up?
You need to run something like: # localedef -d de_DE -f ISO-15 de_DE With the locale -a, it did list all of them (besides C and POSIX), right ? To get rid of the oldes glibc, do: emerge clean glibc
*** Bug 13243 has been marked as a duplicate of this bug. ***
Q With the locale -a, it did list all of them (besides C and POSIX), right ? A wrong: # locale -a C POSIX # localedef -d en_GB -f ISO-15 en_GB localedef: invalid option -- d ...and emerge clean glibc gets rid of the newer one (~x86)
$ grep -v '#' /etc/rc.conf KEYMAP="uk-latin1" CONSOLEFONT="lat0-16" CONSOLETRANSLATION="iso15" CLOCK="UTC" PROTOCOLS="1 2" DISPLAYMANAGER=kdm XSESSION=kde-3.1_rc3 ...but on a text console almost all <AltGr>+char produce question marks, for example: <AltGr>+e produces currency symbol in X (because of xmodmap) but on a text console I get a question mark in inverse video. $ locale -v LANG=en_GB LC_CTYPE=C LC_NUMERIC=en_GB LC_TIME=en_GB LC_COLLATE=C LC_MONETARY=en_GB LC_MESSAGES=en_GB LC_PAPER="en_GB" LC_NAME="en_GB" LC_ADDRESS="en_GB" LC_TELEPHONE="en_GB" LC_MEASUREMENT="en_GB" LC_IDENTIFICATION="en_GB" LC_ALL= $ locale -a C POSIX $ localedef --list-archive af_ZA af_ZA.iso88591 ar_AE ar_AE.iso88596 ar_BH ar_BH.iso88596 ar_DZ ar_DZ.iso88596 ar_EG ar_EG.iso88596 ar_IN ar_IN.utf8 ar_IQ ar_IQ.iso88596 ar_JO ar_JO.iso88596 ar_KW ar_KW.iso88596 ar_LB ar_LB.iso88596 ar_LY ar_LY.iso88596 ar_MA ar_MA.iso88596 ar_OM ar_OM.iso88596 ar_QA ar_QA.iso88596 ar_SA ar_SA.iso88596 ar_SD ar_SD.iso88596 ar_SY ar_SY.iso88596 ar_TN ar_TN.iso88596 ar_YE ar_YE.iso88596 be_BY be_BY.cp1251 bg_BG bg_BG.cp1251 bokmal bokm
$ grep -v '#' /etc/rc.conf KEYMAP="uk-latin1" CONSOLEFONT="lat0-16" CONSOLETRANSLATION="iso15" CLOCK="UTC" PROTOCOLS="1 2" DISPLAYMANAGER=kdm XSESSION=kde-3.1_rc3 ...but on a text console almost all <AltGr>+char produce question marks, for example: <AltGr>+e produces currency symbol in X (because of xmodmap) but on a text console I get a question mark in inverse video. $ locale -v LANG=en_GB LC_CTYPE=C LC_NUMERIC=en_GB LC_TIME=en_GB LC_COLLATE=C LC_MONETARY=en_GB LC_MESSAGES=en_GB LC_PAPER="en_GB" LC_NAME="en_GB" LC_ADDRESS="en_GB" LC_TELEPHONE="en_GB" LC_MEASUREMENT="en_GB" LC_IDENTIFICATION="en_GB" LC_ALL= $ locale -a C POSIX $ localedef --list-archive af_ZA af_ZA.iso88591 ar_AE ar_AE.iso88596 ar_BH ar_BH.iso88596 ar_DZ ar_DZ.iso88596 ar_EG ar_EG.iso88596 ar_IN ar_IN.utf8 ar_IQ ar_IQ.iso88596 ar_JO ar_JO.iso88596 ar_KW ar_KW.iso88596 ar_LB ar_LB.iso88596 ar_LY ar_LY.iso88596 ar_MA ar_MA.iso88596 ar_OM ar_OM.iso88596 ar_QA ar_QA.iso88596 ar_SA ar_SA.iso88596 ar_SD ar_SD.iso88596 ar_SY ar_SY.iso88596 ar_TN ar_TN.iso88596 ar_YE ar_YE.iso88596 be_BY be_BY.cp1251 bg_BG bg_BG.cp1251 bokmal bokmål br_FR br_FR.iso88591 bs_BA bs_BA.iso88592 ca_ES ca_ES.iso88591 ca_ES.iso885915@euro ca_ES@euro catalan croatian cs_CZ cs_CZ.iso88592 cy_GB cy_GB.iso885914 czech da_DK da_DK.iso88591 danish dansk de_AT de_AT.iso88591 de_AT.iso885915@euro de_AT@euro de_BE de_BE.iso88591 de_BE.iso885915@euro de_BE@euro de_CH de_CH.iso88591 de_DE de_DE.iso88591 de_DE.iso885915@euro de_DE@euro de_LU de_LU.iso88591 de_LU.iso885915@euro de_LU@euro deutsch dutch eesti el_GR el_GR.iso88597 en_AU en_AU.iso88591 en_BW en_BW.iso88591 en_CA en_CA.iso88591 en_DK en_DK.iso88591 en_GB en_GB.iso88591 en_HK en_HK.iso88591 en_IE en_IE.iso88591 en_IE.iso885915@euro en_IE@euro en_IN en_IN.utf8 en_NZ en_NZ.iso88591 en_PH en_PH.iso88591 en_SG en_SG.iso88591 en_US en_US.iso88591 en_ZA en_ZA.iso88591 en_ZW en_ZW.iso88591 es_AR es_AR.iso88591 es_BO es_BO.iso88591 es_CL es_CL.iso88591 es_CO es_CO.iso88591 es_CR es_CR.iso88591 es_DO es_DO.iso88591 es_EC es_EC.iso88591 es_ES es_ES.iso88591 es_ES.iso885915@euro es_ES@euro es_GT es_GT.iso88591 es_HN es_HN.iso88591 es_MX es_MX.iso88591 es_NI es_NI.iso88591 es_PA es_PA.iso88591 es_PE es_PE.iso88591 es_PR es_PR.iso88591 es_PY es_PY.iso88591 es_SV es_SV.iso88591 es_US es_US.iso88591 es_UY es_UY.iso88591 es_VE es_VE.iso88591 estonian et_EE et_EE.iso88591 eu_ES eu_ES.iso88591 eu_ES.iso885915@euro eu_ES@euro fa_IR fa_IR.utf8 fi_FI fi_FI.iso88591 fi_FI.iso885915@euro fi_FI@euro finnish fo_FO fo_FO.iso88591 fr_BE fr_BE.iso88591 fr_BE.iso885915@euro fr_BE@euro fr_CA fr_CA.iso88591 fr_CH fr_CH.iso88591 fr_FR fr_FR.iso88591 fr_FR.iso885915@euro fr_FR@euro fr_LU fr_LU.iso88591 fr_LU.iso885915@euro fr_LU@euro français french ga_IE ga_IE.iso88591 ga_IE.iso885915@euro ga_IE@euro galego galician german gl_ES gl_ES.iso88591 gl_ES.iso885915@euro gl_ES@euro greek gv_GB gv_GB.iso88591 he_IL he_IL.iso88598 hebrew hi_IN hi_IN.utf8 hr_HR hr_HR.iso88592 hrvatski hu_HU hu_HU.iso88592 hungarian icelandic id_ID id_ID.iso88591 is_IS is_IS.iso88591 it_CH it_CH.iso88591 it_IT it_IT.iso88591 it_IT.iso885915@euro it_IT@euro italian iw_IL iw_IL.iso88598 ja_JP ja_JP.eucjp ja_JP.ujis japanese japanese.euc ka_GE ka_GE.georgianps kl_GL kl_GL.iso88591 ko_KR ko_KR.euckr ko_KR.utf8 korean korean.euc kw_GB kw_GB.iso88591 lithuanian lt_LT lt_LT.iso885913 lv_LV lv_LV.iso885913 mi_NZ mi_NZ.iso885913 mk_MK mk_MK.iso88595 mr_IN mr_IN.utf8 ms_MY ms_MY.iso88591 mt_MT mt_MT.iso88593 nb_NO nb_NO.ISO-8859-1 nl_BE nl_BE.iso88591 nl_BE.iso885915@euro nl_BE@euro nl_NL nl_NL.iso88591 nl_NL.iso885915@euro nl_NL@euro nn_NO nn_NO.iso88591 no_NO no_NO.iso88591 norwegian nynorsk oc_FR oc_FR.iso88591 pl_PL pl_PL.iso88592 polish portuguese pt_BR pt_BR.iso88591 pt_PT pt_PT.iso88591 pt_PT.iso885915@euro pt_PT@euro ro_RO ro_RO.iso88592 romanian ru_RU ru_RU.iso88595 ru_RU.koi8r ru_UA ru_UA.koi8u russian se_NO se_NO.utf8 sk_SK sk_SK.iso88592 sl_SI sl_SI.iso88592 slovak slovene slovenian spanish sq_AL sq_AL.iso88591 sr_YU sr_YU.iso88592 sr_YU.iso88595@cyrillic sr_YU@cyrillic sv_FI sv_FI.iso88591 sv_FI.iso885915@euro sv_FI@euro sv_SE sv_SE.iso88591 swedish ta_IN ta_IN.utf8 te_IN te_IN.utf8 tg_TJ tg_TJ.koi8t th_TH th_TH.tis620 thai tl_PH tl_PH.iso88591 tr_TR tr_TR.iso88599 turkish uk_UA uk_UA.koi8u ur_PK ur_PK.utf8 uz_UZ uz_UZ.iso88591 vi_VN vi_VN.tcvn vi_VN.utf8 wa_BE wa_BE.iso88591 wa_BE.iso885915@euro wa_BE@euro yi_US yi_US.cp1255 zh_CN zh_CN.gb18030 zh_CN.gb2312 zh_CN.gbk zh_HK zh_HK.big5hkscs zh_TW zh_TW.big5 zh_TW.euctw
Bleh, ok, im on a CVS glibc here :/ Can you guys please do the following: edit glibc-2.3.1-r2 (or -r3 if you have ~x86 in ACCEPT_KEYWORDS), and change: --------------------- export LC_ALL="C" --------------------- in src_install() to: ------------------------------------ unset LANGUAGE LANG LC_ALL ------------------------------------ Also please add above line to first line of src_compile(). If you need me to attatch a sample ebuild, please let me know. Then just remerge glibc, and see if its fixed. I had some issues with timezones, etc in 2.3, and have it on local ebuild, but have not yet had the time to proberly look it over and commit ...
Did those changes to the -r3 ebuild and remerged: still the same.
On Thu, Jan 09, 2003 at 11:49:41AM +0100, Thorsten Kukuk wrote: > > Hi, > > is it a bug or a feature, that locale -a with glibc 2.3 and using > locale-archive only prints "C" and "POSIX" and not all other locales > from the archive? glibc 2.3 or glibc CVS? See my 2002-12-13 change. Jakub Will dig up the patch and apply, Stefan
Created attachment 7203 [details, diff] glibc-2.3.1-locale.patch This is the promised patch diffed from the glibc CVS changeset which fixes this bug. I have tested this limited scope patch, locale -a now works as required. Shall I apply it? If so, shall I bump glibc? Stefan
Added patch to -r2. Please test and let us know. Thanks Stefan!
Re: Comment #9 Yes, -2 works now. Can you apply the patch to -3 as well?
Its done (apply to -r3). Closing this ...