Re: Alain Bench 2007-03-25 <20070325002508.GA2499@xxxxxxx>
> > my locale is LANG=de_DE.UTF-8 when I reply to utf-8 encoded mails, the
> > attribution is encoded in iso8859-1 because strftime does not know
> > about charsets.
>
> Date and time in attributions don't follow the locale from
> environment. They follow Mutt's $locale variable. The user is reponsible
> to set $locale to any available value using the same charset as the
> current locale.
Hi,
I wonder if $locale shouldn't default to $LC_TIME - the default
date_format does already start with a ! to disable localized
timestamps there, and index_format/attribution could be changed as
well. We always advise users to use LANG and LC_* instead of $charset
if possible, so $locale should IMHO be handled likewise.
> If you want to attribute in German:
>
> | set locale=de_DE.UTF-8
>
> If you want to automatically follow your own locale:
>
> | set locale=`echo "${LC_ALL:-${LC_TIME:-${LANG}}}"`
Changing the mutt default would also have the advantage that "set
locale=C" is much easier for the user than the other way round.
Comments?
> If you want to attribute in French:
>
> | set locale=fr_FR.UTF-8
>
> ...und so weiter. Does it work now?
>
>
> | $ attributer de_DE.UTF-8
> | set my_save_config_charset="$config_charset"
> | set config_charset="utf-8"
> | set attribution=" Am %d, %n schrieb:\n"
> | set date_format="%A %-d %B %Y um %-H:%M:%S %Z"
> | set locale="de_DE.UTF-8"
> | set config_charset="$my_save_config_charset"
> | unset my_save_config_charset
>
>
> Bye! Alain.
> --
> Give your computer's unused idle processor cycles to a scientific goal:
> The Folding@home project at <URL:http://folding.stanford.edu/>.
Christoph
--
cb@xxxxxxxx | http://www.df7cb.de/
Attachment:
signature.asc
Description: Digital signature