Re: Bug#414828: mutt inserts attribution in wrong charset
package mutt
# time for a debate
reopen 414828
retitle 414828 mutt: wish localized default $locale
severity 414828 wishlist
thanks
Hello Christoph,
On Sunday, March 25, 2007 at 23:12:59 +0200, Christoph Berg wrote:
> I wonder if $locale shouldn't default to $LC_TIME
I fully agree, that would be a good thing, a step in the good
direction. Naturally users of a mailer expect it to be localized
following their current locale. But changing default $locale value or
behaviour could break existing muttrcs (those which removed ! from
$*_format and count on default $locale to get English time).
I can imagine 2 ways to do it:
-a) Initialise $locale to current locale.
-b) Initialise $locale to "", and make this get the current locale
(instead of skipping setlocale()).
(b) would have the advantage to follow runtime environment changes
(for those using the setenv patch). I'd vote for that.
> the default date_format does already start with a ! to disable
> localized timestamps there, and index_format/attribution could be
> changed as well.
Add ! everywhere to reget English by default? Humm... OK, today is
only a first step, right? Anyway this would also break some existing
muttrcs (those which set $locale and count on default $index_format to
get localized time).
Conclusion: I'm for it, despite the little problems.
Note: See related upstream wish/1158 "persistent locale setting" for
another aspect of the problem, and for a patch touching the same places
as alternative (b) above.
Bye! Alain.
--
Give your computer's unused idle processor cycles to a scientific goal:
The Folding@home project at <URL:http://folding.stanford.edu/>.