You are not logged in.

#1 2006-09-01 09:55:07

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Handling LOCALE in Archie (Everyone's help needed!)

When we started Sylpheed in Archie it spews a Locale error - it works fine but it's annoying.  So, I figure we need to fix that but generally we could use some better locale support in Archie.

I think this will fix the sylpheed error:

McQueen wrote:

Uncomment the locale you desire in /etc/locale.gen.
Set the LOCALE variable in /etc/rc.conf (example below):

LOCALE="en_US.UTF-8"

Run local-gen:
# locale-gen

But when to run local-gen?  We use US defaults because...it's a safe bet.

However, we can pass LOCALE arguements on the command line, or at least we can code that in.  How do we want to do that though?  I have never used locales so can we uncomment lots  of locales in /etc/locale.gen and pass LOCALE= at startup?

Offline

#2 2006-09-01 21:29:49

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

Whoooo, yeah, thanks for all the tips!

OK, lets make it more simple.  Which locales to enable in /etc/locales.gen?

I don't know which UTF8 locale people in Germany use for example, or people in Spain..or people in Russia - so volunteers, please!

Offline

#3 2006-09-01 21:34:29

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Handling LOCALE in Archie (Everyone's help needed!)

en_US.UTF-8 for america. heh.

Offline

#4 2006-09-01 21:44:37

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

That's a start!

Offline

#5 2006-09-01 22:04:17

alger
Member
Registered: 2006-09-01
Posts: 39
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

es_ES.utf8 in Spain

Offline

#6 2006-09-01 22:08:52

alger
Member
Registered: 2006-09-01
Posts: 39
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

I just found this list of locales for latin america

http://docs.hp.com/es/5991-1171/ch03s05.html

Offline

#7 2006-09-01 22:16:42

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

alger: I don't want all of them, I could just uncomment the whole list - I just want to get the main ones big_smile

Offline

#8 2006-09-01 22:36:11

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Handling LOCALE in Archie (Everyone's help needed!)

maybe look through CVS and find the old locales package which contained all of them? Then just update it, chuck it into the archie repo. If you havnt generated any locales on the CD, then it probably won't conflict filewise.

James

Offline

#9 2006-09-01 22:37:03

alger
Member
Registered: 2006-09-01
Posts: 39
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

Oh, ok, then es_ES.utf8 could be used for spanish (although i'm spanish, probably someone from Argentina would tell you to use es_AR tongue)

Offline

#10 2006-09-01 22:53:44

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

iphitus wrote:

maybe look through CVS and find the old locales package which contained all of them? Then just update it, chuck it into the archie repo. If you havnt generated any locales on the CD, then it probably won't conflict filewise.

James

I'd rather generate them at build time to be honest, it's easy enough.  I just want to get the main ones.  We could just go with en_US and people would say fair enough but we may as well throw in a few more!

Offline

#11 2006-09-01 23:26:09

ndlarsen
Member
From: Denmark
Registered: 2005-11-02
Posts: 157

Re: Handling LOCALE in Archie (Everyone's help needed!)

Personally I prefer en_DK on my box, allthough da_DK is usable too. Don't know if that's any help to you.


I made it long
as I lacked the time to make it short...

Offline

#12 2006-09-02 08:15:16

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Handling LOCALE in Archie (Everyone's help needed!)

I use uk_UA.KOI8-U. Russian people use ru_RU.KOI8-R. Will Archie work with non-UTF8 locales? Or do you need some help to make non-UTF8 locales work?


to live is to die

Offline

#13 2006-09-02 08:26:17

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

Romashka wrote:

I use uk_UA.KOI8-U. Russian people use ru_RU.KOI8-R. Will Archie work with non-UTF8 locales? Or do you need some help to make non-UTF8 locales work?

I thought UTF was preferred by everyone?!

Offline

#14 2006-09-02 08:40:48

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Handling LOCALE in Archie (Everyone's help needed!)

dtw wrote:

I thought UTF was preferred by everyone?!

Not by people which use cyrillic alphabet. To make them happy you must ensure that console is working with cyrillic chars and fonts. Coreutils, mc, nano, ncurses should all have perfect support for UTF-8. In current situation they don't have it.
I'm very interested in getting correct locale support in Arch, including UTF-8. I was involved in fixing initscripts in 0.7.0 and 0.7.1 to provide good support for l10n & i18n. But there are still much work to do. At least mc, nano, coreutils and ncurses in current should be patched. There are some bug reports in Flyspray about this.


to live is to die

Offline

#15 2006-09-02 18:36:44

stonedz
Member
From: Firenze, Italy
Registered: 2006-08-29
Posts: 30
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

it_IT.utf8  it's fine for italians like me big_smile


"Software is like sex, it's better when it's free." L.T.

Offline

#16 2006-09-02 19:21:04

mutze13
Member
From: germany
Registered: 2006-05-06
Posts: 107

Re: Handling LOCALE in Archie (Everyone's help needed!)

de_DE.UTF-8 in germany
But sylpheed doesn't work with that, so I have to use de_DE@euro.

Offline

#17 2006-09-02 19:44:49

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: Handling LOCALE in Archie (Everyone's help needed!)

nb_NO.UTF-8 for norwegian "bokmål" variant
nn_NO.UTF-8 for norwegian "nynorsk" variant

Offline

#18 2006-09-16 16:09:21

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Handling LOCALE in Archie (Everyone's help needed!)

If user uses non-UTF8 locale and want to support filenames in GTK apps in different encoding than UTF-8 he/she should take a look at this: http://developer.gnome.org/doc/API/2.0/ … nning.html

For example I have /etc/profile.d/gtk+.sh:

G_BROKEN_FILENAMES=1 
export G_BROKEN_FILENAMES 
G_FILENAME_ENCODING=@locale
export G_FILENAME_ENCODING

to live is to die

Offline

#19 2006-09-16 16:25:23

stavrosg
Member
From: Rhodes, Greece
Registered: 2005-05-01
Posts: 330
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

el_GR.UTF-8 for Greek.

Offline

#20 2006-09-16 16:31:09

Pablo_Escobar
Member
From: Poznan, Poland
Registered: 2005-12-20
Posts: 65
Website

Re: Handling LOCALE in Archie (Everyone's help needed!)

pl_PL.utf8 for Polish smile


Arch - Home sweet home smile

Offline

Board footer

Powered by FluxBB