You are not logged in.

#1 2007-08-06 15:39:29

cubo
Member
From: Slovakia
Registered: 2007-02-03
Posts: 25

locales & zsh

Hello,

i have set zsh as my default shell. But after this the locales aren't exporting properly. I want to have system in english (LANG) but i need CTYPE variable set/export to another language to display and type special characters with diacritics properly. I have tried many options with no luck...

In which zsh conf file i can set locales ("export LC_...")?

thanks

Offline

#2 2007-08-06 18:51:38

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: locales & zsh

cubo wrote:

In which zsh conf file i can set locales ("export LC_...")?

In e.g. /etc/zprofile. If you like you can simply make a symlink of /etc/profile to /etc/zprofile. It's a nice way to evade problems like that. smile


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#3 2007-08-06 19:31:34

cubo
Member
From: Slovakia
Registered: 2007-02-03
Posts: 25

Re: locales & zsh

Thanks for reply,

i have solved this problem by putting the export variables into ~/.zshenv.
Your solution works too

Offline

#4 2008-03-10 06:38:41

Tristelune
Member
Registered: 2007-10-09
Posts: 86

Re: locales & zsh

Hello,

I also have some problems with locales. I used a similar solutions: I exported all my locales in my /etc/zprofiles:

export LANG=en_US.ISO-8859-1 
 export LC_CTYPE="en_US.ISO-8859-1" 
 export LC_NUMERIC="en_US.ISO-8859-1" 
 export LC_TIME="en_US.ISO-8859-1" 
 export LC_COLLATE=C 
 export LC_MONETARY="en_US.ISO-8859-1" 
 export LC_MESSAGES="en_US.ISO-8859-1" 
 export LC_PAPER="en_US.ISO-8859-1" 
 export LC_NAME="en_US.ISO-8859-1" 
 export LC_ADDRESS="en_US.ISO-8859-1" 
 export LC_TELEPHONE="en_US.ISO-8859-1" 
 export LC_MEASUREMENT="en_US.ISO-8859-1" 
 export LC_IDENTIFICATION="en_US.ISO-8859-1" 
 export LC_ALL=

But because it's done for bash, I think there is another way to solve the problem. So after doing it, I deleted all exported variables im my /etc/profiles, but my locales didn't change, they were always en_US.ISO-8859-1!! Before I had them to that files they were en_US.UTF-8. Can somebody tells me, why my locales didn't change to my initial settings after the deletion ? No idea.........

And why aren't those locales exported for bash and everything is set to en_US.ISO-8859-1 ?

Thank you!!

Offline

Board footer

Powered by FluxBB