Hi, I think this is a good way:
first, use the environment locale setting, like Charles
said. then, let the user can choise. An easy way is, get the default
value of charset setting from the environment locale setting, when user
change it, use what the user choose. And, just add a "Get from locale setting"
option to reset it.
----- Original Message -----
Sent: Thursday, May 09, 2002 4:28
Subject: Re: [Pan-devel] posting
On Tue, 2002-05-07 at 14:55, Charles Kerr
> On Sat, May 04, 2002 at 06:53:10PM +0200, Colin Leroy
> > Just a question :) Wouldn't it be nice to save, either as
> > pref, either save the "last used choice", the charset
that user want
> > for posting ?
> IIRC right now it
comes from poking setlocale() and then calling
> get_closest_locale() in
message-window.c., which I lifted from
> Balsa. i18n users will
already have their locale set, so the hope
> is that Pan will `just
work' without the user having to explicitly
> set their
I think that is a good heuristic for setting the default
However, I think we should remember the last used choice. For
prefer to use apps in English (no translations for me), so I
locale at en_US, which gives me a default charset of iso8859-1.
in a non-english newsgroup, I'd set the charset to iso8859-15.
However, by not remembering the charset, I'd have to do this every
So, I think Colin's idea has merit. We already have a charset
the Group struct, so it should just be a matter of using it to set
posting charset and vice versa
 OK, technically I could post
most west-european languages in
iso8859-1, but you get the idea.