You are not logged in.

#1 2011-11-06 08:21:36

kzlazy
Member
Registered: 2010-03-01
Posts: 45

Messed up my locale

So I noticed this today

Summary: Please manually delete /etc/profile.d/locale.sh before updating. If . /etc/rc.conf fails in your login shell, please read the full announcement.

and deleted locale.sh . Now my system does not recognize greek characters. How do I recreate the deleted file? Simple locale generation does not mend this.
Thanks

ps $ locale gives

LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

and $ locale -a gives

C
POSIX
el_GR
el_GR.iso88597
el_GR.utf8
en_US
en_US.iso88591
en_US.utf8
greek

Last edited by kzlazy (2011-11-06 08:30:36)


Now there sits a man with an open mind. You can feel the draft from here...
Groucho Marx

Offline

#2 2011-11-06 08:33:18

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Messed up my locale

Take a look at the file /etc/locale.conf and put something like;
LANG=el_GR.UTF-8 or what you used to.

Offline

#3 2011-11-06 08:39:39

kzlazy
Member
Registered: 2010-03-01
Posts: 45

Re: Messed up my locale

swanson wrote:

Take a look at the file /etc/locale.conf and put something like;
LANG=el_GR.UTF-8 or what you used to.

just did that, but my problem persists

my /etc/locale.conf is

LANG=el_GR.UTF-8
el_GR.ISO-8859-7
LC_MESSAGES=C 

Now there sits a man with an open mind. You can feel the draft from here...
Groucho Marx

Offline

#4 2011-11-06 08:45:27

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Messed up my locale

Did you see this post ?;

http://bbs.archbang.org/viewtopic.php?id=1448

PS your locale command shouldn't read "POSIX", it should read el_GR-UTF-8 instead.

Last edited by swanson (2011-11-06 08:55:35)

Offline

#5 2011-11-06 08:53:48

kzlazy
Member
Registered: 2010-03-01
Posts: 45

Re: Messed up my locale

Thank you swanson. The problem is that I did not follow the #4 tip

Tim, to be on the safe side, hold off deleting the file until you notice initscripts is in an update.  Delete the file and then update.

and have already deleted the file...


Now there sits a man with an open mind. You can feel the draft from here...
Groucho Marx

Offline

#6 2011-11-06 08:54:49

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Messed up my locale

Solved then?

Offline

#7 2011-11-06 09:05:35

kzlazy
Member
Registered: 2010-03-01
Posts: 45

Re: Messed up my locale

Nope. Actually, I cannot access files/folders with greek character names. I can write greek though.
The locale command does not read "posix" anymore, after I changed the locale.conf

Last edited by kzlazy (2011-11-06 09:09:15)


Now there sits a man with an open mind. You can feel the draft from here...
Groucho Marx

Offline

#8 2011-11-06 15:26:26

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Messed up my locale

kzlazy wrote:

my /etc/locale.conf is

LANG=el_GR.UTF-8
el_GR.ISO-8859-7
LC_MESSAGES=C 

The second line is bogus. Get rid of it.

Offline

#9 2011-11-06 15:34:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Messed up my locale

falconindy wrote:
kzlazy wrote:

my /etc/locale.conf is

LANG=el_GR.UTF-8
el_GR.ISO-8859-7
LC_MESSAGES=C 

The second line is bogus. Get rid of it.

I have

export LC_MESSAGES="C"

in my ~/.bashrc.

Offline

#10 2011-11-06 15:59:41

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Messed up my locale

1) LANG=el_GR.UTF-8
2) el_GR.ISO-8859-7
3) LC_MESSAGES=C

One of these is not a key=value definition. Please remove it.

Offline

#11 2011-11-06 18:59:50

kzlazy
Member
Registered: 2010-03-01
Posts: 45

Re: Messed up my locale

Thank you all. In fact I did remove the iso-8859 line. I replaced the deleted locale.sh from another installation and then removed the locale.conf, and was back where I started... A bit sloppy but it worked.


Now there sits a man with an open mind. You can feel the draft from here...
Groucho Marx

Offline

Board footer

Powered by FluxBB