Re: What does charset in locale setting affect?
On Sun, Sep 02, 2012 at 11:11:56PM -0400, Dan B. wrote: Roger Leigh wrote: On Sat, Sep 01, 2012 at 07:32:48PM -0400, Dan B. wrote: ... Which common programs (e.g., getty, xterm/etc., sed/grep?) do something different based on the charset portion of the local setting? All of them, in short. When you run a terminal emulator such as xterm, it will get the encoding to use inside the emulator using nl_langinfo(3).... What about the virtual consoles? Virtual consoles are slightly different. Because they start up /before/ you log in, they switch unicode mode on or off depending on the default system locale (/etc/default/locale). See unicode_start_stop in /etc/init.d/console-screen.kbd.sh. You can switch them into unicode mode with unicode_start, which sends an escape sequence to select the ISO-2022 UTF-8 charset. Whether I choose a default system locale of UTF-8 or None (in the dialog for dpkg-reconfigure locales), and log out and log in (to make sure the shell has a chance to get fresh settings), then echo $'\xC2\xA2' displays the same thing (the cent sign). None might result in UTF-8 as a default. Try ISO-8859-1 to explicitly specify a non-unicode locale. None that you'll need to generate a suitable locale e.g. en_GB.ISO-8859-1 with localegen/localedef. Is the virtual console supposed to follow the locale's character encoding? If so, does something else (e.g., something in /etc/init.d/) need to be run to make a difference? /etc/init.d/console-screen.kbd.sh as above. Actually, what I really want to know is how to revert the sorting of file names from ls (and Emacs dired listings) from the order caused by having en_US in LANG=en_US.UTF-8 back to the traditional (old) Unix order (e.g., what LANG=C would yield) without messing up all the UTF-8 support that's all over Linux now. First of all, can UTF-8 be combined with the C locale as in LANG=C.UTF-8? Yes (and no). You can certainly generate such a locale. In fact, I'm a strong proponent of having a C.UTF-8 locale as the default locale in glibc. However, right now if you generate it (which is possible), it's not completely compatible with a real C locale (i.e. conformant with the C and POSIX standards). Hopefully this will be the case in the future. Do I probably want something closer to LANG=en_US.UTF-8 LC_COLLATE=C (in order to reduce the amount of locale settings I'm overriding)? Just set LC_COLLATE=C. So you keep the UTF-8 LC_CTYPE, but the sort order is taken from C. However, this will likely miss-sort any character outside the ASCII range, since C is a 7-bit ASCII locale. [Note: you probably do not want this!] In general, I would advise using the default collation for your locale, though in code it's common to switch to C for locale-independent sorting. When you run sed/grep, the encoding will affect how it processes the text. Are you sure about sed? I tried probing how LANG= vs. LANG=en_US.UTF-8 affected whether the regular expression [a-z] matched X. Grep seems to be affected as expected, but sed never matched. (That's on Squeeze.) It's the same version in wheezy, so I would not expect a change here. I'm not sure how [a-z] matches--I'd have to check if it's locale- independent. In general, I'd use POSIX character classes like [:alpha:], [:upper:] and [:lower:] to work properly in all locales. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linuxhttp://people.debian.org/~rleigh/ `. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools `-GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120903111323.gi3...@codelibre.net
Re: What does charset in locale setting affect?
On Sun, Sep 2, 2012 at 11:11 PM, Dan B. d...@kempt.net wrote: Are you sure about sed? I tried probing how LANG= vs. LANG=en_US.UTF-8 affected whether the regular expression [a-z] matched X. Grep seems to be affected as expected, but sed never matched. (That's on Squeeze.) What commands dud you use?! -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=swrjr-sc2xvdu3dtmhv-r7ltdfrg4hsprcpzddgbuf...@mail.gmail.com
Re: What does charset in locale setting affect?
On Sat, Sep 01, 2012 at 07:32:48PM -0400, Dan B. wrote: In a locale setting such as en_US.UTF-8 (e.g., LANG=en_US.UTF-8), what exactly does the charset/character encoding part (UTF-8) affect? This affects the character encoding that programs use for input and output. For example, if you want to print the character ‘á’ (Unicode code point 0x00E1), you will output this as UTF-8 as the byte sequence 0xc3 0xa1 However, in a Latin 1 (ISO-8859-1) locale, this would be printed as 0xe1 and in other encodings, it will be a different byte sequence yet again. Which common programs (e.g., getty, xterm/etc., sed/grep?) do something different based on the charset portion of the local setting? All of them, in short. When you run a terminal emulator such as xterm, it will get the encoding to use inside the emulator using nl_langinfo(3). This returns the name of the character encoding used in the locale. This will ensure that it knows the encoding used by programs so that it can correctly display them, and likewise for the input it sends to them. If the encoding was incorrect, it would otherwise display garbage. When you run sed/grep, the encoding will affect how it processes the text. It's therefore important to use the same encoding in your files as you have set in your locale. Before we had UTF-8, the old 8-bit encodings didn't necessarily match your locale, and you couldn't tell what they were supposed to be, so using UTF-8 everywhere has been a massive improvement. This is generally completely transparent. For example, if you were to write (in C), the following code: #include stdio.h #include locale.h int main(void) { setlocale(LC_ALL, ); printf(á\n); return 0; } This will work correctly in any locale. GCC defaults to using UTF-8 internally, and will translate it to the user's locale encoding on output. Nowadays, there's little reason to use any encoding other than UTF-8; all the others are a subset of UTF-8 and only present for legacy and compatibility reasons. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linuxhttp://people.debian.org/~rleigh/ `. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools `-GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120902095315.gd3...@codelibre.net
Re: What does charset in locale setting affect?
On Sat, 01 Sep 2012 19:32:48 -0400, Dan B. wrote: In a locale setting such as en_US.UTF-8 (e.g., LANG=en_US.UTF-8), what exactly does the charset/character encoding part (UTF-8) affect? Which common programs (e.g., getty, xterm/etc., sed/grep?) do something different based on the charset portion of the local setting? Debian's Reference Manual has a small section about that (8.3.2. Rationale for UTF-8 locale): http://www.debian.org/doc/manuals/debian-reference/ch08.en.html Anyway, it seems that today everything and everybody is moving towards unicode and utf-8. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/k1vsqb$tli$7...@ger.gmane.org
Re: What does charset in locale setting affect?
Roger Leigh wrote: On Sat, Sep 01, 2012 at 07:32:48PM -0400, Dan B. wrote: ... Which common programs (e.g., getty, xterm/etc., sed/grep?) do something different based on the charset portion of the local setting? All of them, in short. When you run a terminal emulator such as xterm, it will get the encoding to use inside the emulator using nl_langinfo(3).... What about the virtual consoles? Whether I choose a default system locale of UTF-8 or None (in the dialog for dpkg-reconfigure locales), and log out and log in (to make sure the shell has a chance to get fresh settings), then echo $'\xC2\xA2' displays the same thing (the cent sign). Is the virtual console supposed to follow the locale's character encoding? If so, does something else (e.g., something in /etc/init.d/) need to be run to make a difference? No, I'm not actually trying to turn off using UTF-8. I'm just trying to find out how things work (what actually is affected by the locale settings). Actually, what I really want to know is how to revert the sorting of file names from ls (and Emacs dired listings) from the order caused by having en_US in LANG=en_US.UTF-8 back to the traditional (old) Unix order (e.g., what LANG=C would yield) without messing up all the UTF-8 support that's all over Linux now. First of all, can UTF-8 be combined with the C locale as in LANG=C.UTF-8? Do I probably want something closer to LANG=en_US.UTF-8 LC_COLLATE=C (in order to reduce the amount of locale settings I'm overriding)? When you run sed/grep, the encoding will affect how it processes the text. Are you sure about sed? I tried probing how LANG= vs. LANG=en_US.UTF-8 affected whether the regular expression [a-z] matched X. Grep seems to be affected as expected, but sed never matched. (That's on Squeeze.) Daniel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/50441ffc.7040...@kempt.net
What does charset in locale setting affect?
In a locale setting such as en_US.UTF-8 (e.g., LANG=en_US.UTF-8), what exactly does the charset/character encoding part (UTF-8) affect? Which common programs (e.g., getty, xterm/etc., sed/grep?) do something different based on the charset portion of the local setting? Thanks, Daniel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/50429b20.7030...@kempt.net
Re: [Solved] Re: Locale setting different for root and user
On Wed, Feb 07, 2007 at 08:24:32AM +0100 or thereabouts, Marcus Blumhagen wrote: On Wed, Feb 07, 2007 at 12:20:37AM -0500, Stephen wrote: [...] It works just dandy now. Any idea why 'LC_ALL=' is blank after running 'dpkg-reconfigure locales' or is that anything to worry about ? [...] LC_ALL is unset because it has higher priority than LANG and all other LC_*. If it were set the others would be ignored since LC_ALL overrides them. OK Thanks for the explanation Marcus. -- Regards Stephen A. Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045 + The notes blatted skyward as they rose over the Canada geese, feathered rumps mooning the day, webbed appendages frantically pedaling unseen bicycles in their search for sustenance, driven by cruel Nature's maxim, 'Ya wanna eat, ya gotta work,' and at last I knew Pittsburgh. -- Winning sentence, 1987 Bulwer-Lytton bad fiction contest. + signature.asc Description: Digital signature
Locale setting different for root and user
I reconfigured locales on Etch from ISO-8859-1 to en_CA.UTF-8 'dpkg-reconfigure locales'. What's weird is that when I do 'locale' as a regular user I get the following; $ 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=en_CA.ISO-8859-1 LC_CTYPE=en_CA.ISO-8859-1 LC_NUMERIC=en_CA.ISO-8859-1 LC_TIME=en_CA.ISO-8859-1 LC_COLLATE=en_CA.ISO-8859-1 LC_MONETARY=en_CA.ISO-8859-1 LC_MESSAGES=en_CA.ISO-8859-1 LC_PAPER=en_CA.ISO-8859-1 LC_NAME=en_CA.ISO-8859-1 LC_ADDRESS=en_CA.ISO-8859-1 LC_TELEPHONE=en_CA.ISO-8859-1 LC_MEASUREMENT=en_CA.ISO-8859-1 LC_IDENTIFICATION=en_CA.ISO-8859-1 LC_ALL= But when run as root; # locale LANG=en_CA.UTF-8 LANGUAGE=en_CA:en_US:en_GB:en LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=en_CA.UTF-8 LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 LC_PAPER=en_CA.UTF-8 LC_NAME=en_CA.UTF-8 LC_ADDRESS=en_CA.UTF-8 LC_TELEPHONE=en_CA.UTF-8 LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=en_CA.UTF-8 LC_ALL= Why the difference, and what do I change to fix it? Thanks. -- Regards Stephen A. Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045 + The only people for me are the mad ones -- the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn like fabulous yellow Roman candles. -- Jack Kerouac, On the Road + signature.asc Description: Digital signature
Re: Locale setting different for root and user
On Tue, Feb 06, 2007 at 11:27:04PM -0500, Stephen wrote: [...] $ locale [...] LANG=en_CA.ISO-8859-1 [...] # locale LANG=en_CA.UTF-8 [...] Why the difference, and what do I change to fix it? Hi Stephen, maybe it is set in your ~/.bashrc or ~/.bash_profile. You can find out by running: $ cat ~/.bashrc ~/.bash_profile | grep LANG= I suspect this will return a line like this: export LANG=en_CA.ISO-8859-1 If so, you need to find out whether it is in ~/.bashrc or ~/.bash_profile and change it to: export LANG=en_CA.UTF-8 Anyway adding this last line to one of those two files should solve your problem. You will have to logout and login again to make the changes take effect. Regards Marcus signature.asc Description: Digital signature
[Solved] Re: Locale setting different for root and user
On Wed, Feb 07, 2007 at 06:05:53AM +0100 or thereabouts, Marcus Blumhagen wrote: On Tue, Feb 06, 2007 at 11:27:04PM -0500, Stephen wrote: Why the difference, and what do I change to fix it? Hi Stephen, Hi Marcus: maybe it is set in your ~/.bashrc or ~/.bash_profile. You can find out by running: $ cat ~/.bashrc ~/.bash_profile | grep LANG= I suspect this will return a line like this: export LANG=en_CA.ISO-8859-1 Wasn't in either. If so, you need to find out whether it is in ~/.bashrc or ~/.bash_profile and change it to: export LANG=en_CA.UTF-8 Anyway adding this last line to one of those two files should solve your problem. You will have to logout and login again to make the changes take effect. Thanks very much Marcus ! It works just dandy now. Any idea why 'LC_ALL=' is blank after running 'dpkg-reconfigure locales' or is that anything to worry about ? -- Regards Stephen A. Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045 + Something's rotten in the state of Denmark. -- Shakespeare + signature.asc Description: Digital signature
Re: [Solved] Re: Locale setting different for root and user
On Wed, Feb 07, 2007 at 12:20:37AM -0500, Stephen wrote: [...] It works just dandy now. Any idea why 'LC_ALL=' is blank after running 'dpkg-reconfigure locales' or is that anything to worry about ? [...] LC_ALL is unset because it has higher priority than LANG and all other LC_*. If it were set the others would be ignored since LC_ALL overrides them. Regards Marcus signature.asc Description: Digital signature
Re: How can I change the locale setting?
On Wed, Dec 01, 2004 at 04:42:08PM -0500, Thomas H. George wrote: I must have missed something very elementary. I can't find out how to change the locale setting from POSIX to en_US. locale -a shows both are available. apropos locale provides a long list of locale programs including setlocale. The man page for setlocale specifies the header to use in a C program. I am not able to whip up a C program at the drop of a hat though I can work one out if forced. Still there must be a trivially simple way to change the locale setting though I can't find one in my reference books. I would appreciate it if someone could take a moment to point me in the right direction. Hmm, is /etc/environment related to the locale setting? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) [EMAIL PROTECTED] http://magnus.therning.org/ Tragedy purges the mind of trivia. -- George Gilder signature.asc Description: Digital signature
Re: How can I change the locale setting?
try: dpkg-reconfigure -plow locales -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How can I change the locale setting?
On Wed, Dec 01, 2004 at 04:42:08PM -0500, Thomas H. George wrote: I must have missed something very elementary. I can't find out how to change the locale setting from POSIX to en_US. locale -a shows both are available. apropos locale provides a long list of locale programs including setlocale. The man page for setlocale specifies the header to use in a C program. I am not able to whip up a C program at the drop of a hat though I can work one out if forced. Still there must be a trivially simple way to change the locale setting though I can't find one in my reference books. I would appreciate it if someone could take a moment to point me in the right direction. Tom George Hi Tom, dpkg-reconfigure locales there is also 'localconf'. -Kev -- counter.li.org #238656 -- goto counter.li.org and be counted! (__) (oo) /--\/ / ||| * /\---/\ ~~ ~~ Have you mooed today?... signature.asc Description: Digital signature
How can I change the locale setting?
I must have missed something very elementary. I can't find out how to change the locale setting from POSIX to en_US. locale -a shows both are available. apropos locale provides a long list of locale programs including setlocale. The man page for setlocale specifies the header to use in a C program. I am not able to whip up a C program at the drop of a hat though I can work one out if forced. Still there must be a trivially simple way to change the locale setting though I can't find one in my reference books. I would appreciate it if someone could take a moment to point me in the right direction. Tom George -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How can I change the locale setting?
On Wed, Dec 01, 2004 at 04:42:08PM -0500, Thomas H. George wrote: I must have missed something very elementary. I can't find out how to change the locale setting from POSIX to en_US. locale -a shows both are available. apropos locale provides a long list of locale programs including setlocale. The man page for setlocale specifies the header to use in a C program. I am not able to whip up a C program at the drop of a hat though I can work one out if forced. Still there must be a trivially simple way to change the locale setting though I can't find one in my reference books. I would appreciate it if someone could take a moment to point me in the right direction. Tom George To change the default locale for your whole system, run dpkg-reconfigure locales Regards, Jan Nordholz -- [EMAIL PROTECTED] signature.asc Description: Digital signature
Re: How can I change the locale setting?
On Wed, 01 Dec 2004 16:42:08 -0500, Thomas H. George [EMAIL PROTECTED] wrote: I must have missed something very elementary. I can't find out how to change the locale setting from POSIX to en_US. locale -a shows both are available. apropos locale provides a long list of locale programs including setlocale. The man page for setlocale specifies the header to use in a C program. I am not able to whip up a C program at the drop of a hat though I can work one out if forced. Still there must be a trivially simple way to change the locale setting though I can't find one in my reference books. I would appreciate it if someone could take a moment to point me in the right direction. IIRC, dpkg-reconfigure locales is used to generate the locale you want to use,i don't remember if this set the default too, anyway if you use a DE (like Gnome or KDE) you should find an option to set it, if you want to set on your console, look for i18n on your shell documentation. You usually need to export some environment variables like LANG or LC_CTYPE, LC_NUMERIC, LC_TIME... Andrea -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How can I change the locale setting?
On Wed, Dec 01, 2004 at 04:42:08PM -0500, Thomas H. George wrote: I must have missed something very elementary. I can't find out how to change the locale setting from POSIX to en_US. locale -a shows both are available. apropos locale provides a long list of locale programs including setlocale. The man page for setlocale specifies the header to use in a C program. I am not able to whip up a C program at the drop of a hat though I can work one out if forced. Still there must be a trivially simple way to change the locale setting though I can't find one in my reference books. I would appreciate it if someone could take a moment to point me in the right direction. Tom George dpkg-reconfigure locale (or locales?, try both) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Re[2]: Locale Setting, LC_ALL e LANGUAGE
Favor seguir netiqueta, RFC 1855. Em Dom, 2004-01-04 às 05:33, Everton Moraes escreveu: Coloquei no /etc/environment LC_ALL=ISO-8859-1 e o LANGUAGE=pt_BR dei um export LC_ALL=ISO-8859-1 e LANGUAGE=pt_BR continua dando erro o localeconf estava instalado dpkg-reconfigure perl, dpkg-reconfigure localeconf, e continua.. Sim, teu LC_ALL está bagunçado. Ele é só uma maneira de refazer o LANG, que deve ser usado de preferência. E o LANG tem o mesmo conteúdo do primeiro item do LANGUAGE, que é uma lista de ordem de preferência. Apague o LC_ALL e rode o dpkg-reconfigure localeconf, aí veja o conteúdo do /etc/environment. Acrescente no LANGUAGE o resto da lista, por exemplo pt_BR.UTF-8:pt_BR:pt.UTF-8:pt:gl:es:fr:en. -- Leandro Guimarães Faria Corcete Dutra [EMAIL PROTECTED] Prefeitura do Município de São Paulo dos Campos de Piratininga Governo Eletrônico, Telecentros +55 (11) 5080 9647 http://br.geocities.com./lgcdutra/ +55 (11) 5080 9648
Re[2]: Locale Setting, LC_ALL e LANGUAGE
Saturday, January 3, 2004, 4:10:11 PM, you wrote: LGFCD Em Sat, 03 Jan 2004 13:33:29 -0200, Everton Moraes escreveu: De um dia pro outro, começou a dar uns erros no settings do locale... LGFCD Você mexeu em libc, locales ou localeconf? o erro é o seguinte... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = (ISO-8859-1) LANG = pt_BR are supported and installed on your setting perl: warning: Falling back to the standard locale (C) LGFCD O que responde o perl -v? Aparentenmente locale está legal mas o LGFCD Perl é que está bichado. já dei um dpkg-reconfigure locales mas nao deu certo.. LGFCD Tente apt-get install localeconf onde seto o LC_ALL e LANGUAGE ? LGFCD /etc/environment LGFCD -- LGFCD Leandro Guimarães Faria Corsetti Dutra [EMAIL PROTECTED] LGFCD Belo Horizonte, Londrina, São Paulo +55 (11) 5686 9607 LGFCD http://br.geocities.com./lgcdutra/ +55 (11) 5685 2219 LGFCD Soli Deo Gloria!+55 (11) 9406 7191 Coloquei no /etc/environment LC_ALL=ISO-8859-1 e o LANGUAGE=pt_BR dei um export LC_ALL=ISO-8859-1 e LANGUAGE=pt_BR continua dando erro o localeconf estava instalado dpkg-reconfigure perl, dpkg-reconfigure localeconf, e continua.. alguma ideia ?? -- Abraços, Evertonmailto:[EMAIL PROTECTED]
Locale Setting, LC_ALL e LANGUAGE
Opa e a galera beleza ? De um dia pro outro, começou a dar uns erros no settings do locale... o erro é o seguinte... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = (ISO-8859-1) LANG = pt_BR are supported and installed on your setting perl: warning: Falling back to the standard locale (C) já dei um dpkg-reconfigure locales mas nao deu certo.. onde seto o LC_ALL e LANGUAGE ? agradeço desde já.. Abraços Everton
Re: Locale Setting, LC_ALL e LANGUAGE
Em Sat, 03 Jan 2004 13:33:29 -0200, Everton Moraes escreveu: De um dia pro outro, começou a dar uns erros no settings do locale... Você mexeu em libc, locales ou localeconf? o erro é o seguinte... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = (ISO-8859-1) LANG = pt_BR are supported and installed on your setting perl: warning: Falling back to the standard locale (C) O que responde o perl -v? Aparentenmente locale está legal mas o Perl é que está bichado. já dei um dpkg-reconfigure locales mas nao deu certo.. Tente apt-get install localeconf onde seto o LC_ALL e LANGUAGE ? /etc/environment -- Leandro Guimarães Faria Corsetti Dutra [EMAIL PROTECTED] Belo Horizonte, Londrina, São Paulo +55 (11) 5686 9607 http://br.geocities.com./lgcdutra/ +55 (11) 5685 2219 Soli Deo Gloria!+55 (11) 9406 7191
Locale setting problem
hi, my system (unstable) currently has the following locales set up for it: degoba:/etc# locale -a C POSIX i want to add some other locales like en_US to it so that i can see some of the special characters that are in emails on this list. i've tried dpkg-reconfigure locales to try to generate the new locales and it seems to work. i get messages about generating the new locales. my problem is that these new locales do not appear when i try locale -a. i have also tried localeconf, but that seems to be fine-grained control over the LC* variables. can anyone tell me what i'm doing wrong? TIA, sridhar -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Locale setting problem
On Sun, Aug 03, 2003 at 10:52:26AM -0400, Sridhar Srinivasan wrote: i get messages about generating the new locales. my problem is that these new locales do not appear when i try locale -a. They won't. can anyone tell me what i'm doing wrong? Sure. You're not reading bug #166979. The locale command doesn't know anything about locale-archive files, and that's what gets created by default these days. To get a true picture of what locales you have built, use both 'locale -a' and 'localedef --list-archive'. Supposedly glibc 2.3.2 enhances the locale binary. -- Marc Wilson | Pandora's Rule: Never open a box you didn't close. [EMAIL PROTECTED] | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Locale setting problem
On Sun, Aug 03, 2003 at 08:44:07AM -0700, Marc Wilson wrote: On Sun, Aug 03, 2003 at 10:52:26AM -0400, Sridhar Srinivasan wrote: i get messages about generating the new locales. my problem is that these new locales do not appear when i try locale -a. They won't. can anyone tell me what i'm doing wrong? Sure. You're not reading bug #166979. The locale command doesn't know anything about locale-archive files, and that's what gets created by default these days. To get a true picture of what locales you have built, use both 'locale -a' and 'localedef --list-archive'. Supposedly glibc 2.3.2 enhances the locale binary. thanks for the info. so i guess i will have to try to upgrade my glibc as i'm currently at 2.3.1 but it doesn't show up on dselect, any suggestions? thanks, sridhar -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Locale setting problem
On Sun, Aug 03, 2003 at 12:55:37PM -0400, Sridhar Srinivasan wrote: On Sun, Aug 03, 2003 at 08:44:07AM -0700, Marc Wilson wrote: On Sun, Aug 03, 2003 at 10:52:26AM -0400, Sridhar Srinivasan wrote: can anyone tell me what i'm doing wrong? Sure. You're not reading bug #166979. The locale command doesn't know anything about locale-archive files, and that's what gets created by default these days. To get a true picture of what locales you have built, use both 'locale -a' and 'localedef --list-archive'. Supposedly glibc 2.3.2 enhances the locale binary. thanks for the info. so i guess i will have to try to upgrade my glibc as i'm currently at 2.3.1 but it doesn't show up on dselect, any suggestions? Wait a little until 2.3.2 arrives in unstable. If you aren't already an expert, don't try to upgrade glibc by hand. -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Locale Setting
Hello I have this in my /etc/locale.gen en_US.UTF-8 UTF-8 then I export LC_CTYPE=en_US.UTF-8, but the prob is when I startx the fonts look big and weird .. not sure why . Anyone has any idea ? thanks -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Locale setting on my console to see Japanese character
Deepak Kotian, 2002-May-19 00:24 +0530: Hi, I have all the locales on my machine. locale -a shows it. I have set the LANG as japanese, but when I do ls -l at command prompt on a directory. I do not proper Japanese character in the time stamp column of the output. It is not English. It seems the terminal is not able to display Japanese. I want japanese charaters to be displayed on my LINUX console. What do I have to do ? I do not/cannot use Japanese Windows Client. If anyone has any idea, please let me know. Thanks and Regards Deepak I'm going through the same thing and I managed to fix it, at least temporarily. I did dpkg-reconfigure locales to make sure the proper locale was chosen first. Then, I checked the /etc/environment file and changed the LANG setting there and then checked /etc/profile to see if anything was set there for LANG or LC_*, but nothing was. I then changed the environment variable with export LANG=en_US. And that did the trick. Look for an LC_ settings too, such as LC_ALL or LC_LIBRARY. These would need changing too. I hope this helps...jc -- Jeff CoppockSystems Engineer Diggin' Debian Admin and User -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Locale setting on my console to see Japanese character
Hi, I have all the locales on my machine. locale -a shows it. I have set the LANG as japanese, but when I do "ls -l" at command prompt on a directory. I do not proper Japanese character in the time stamp column of the output. It is not English. It seems the terminal is not able to display Japanese. I want japanese charaters to be displayed on my LINUX console. What do I have to do ? I do not/cannot use Japanese Windows Client. If anyone has any idea, please let me know. Thanks and Regards Deepak