<<< Date Index >>>     <<< Thread Index >>>

Re: Bug#414828: mutt inserts attribution in wrong charset



 On Monday, March 26, 2007 at 17:26:53 +0200, Christoph Berg wrote:

> which parts are all affected.

    $locale impacts $date_format, and all $*_formats having date
%expandos.

    Environment impacts the browser at startup (later browser becomes
English, flea/1734), and some dates here and there (like the "PGP output
follows (current time: ...)").


> $locale would change the language there [attributions], but not the
> charset. <pondering> Could we make these 2 parts independent? </p>

    I think unfortunately not. Sure it would be very handy, for Mutt and
outside, but it's just not the way locales and strftime() were defined
to work.


>> -a) Initialise $locale to current locale.
>> -b) Initialise $locale to "", and make this get the current locale

    (a) would have the advantage that the output of "set ?locale" is
more explicit (than an empty string).

    (b) would use the same semantics as setlocale() itself (where empty
string picks environment, or regional options of the control panel on
Win32, or whatever appropriate).


> on which kinds of systems do we really need $charset and $locale
> inside mutt?

    $charset is needed on platforms without nl_langinfo(CODESET),
platforms where it gives wrong charset (or stupid names), setups without
locales or with broken ones, everywhere to play some advanced tricks,
to simulate $editor_charset, to enable //TRANSLITerations... Mandatory.

    $locale is needed for foreign language attributions.


> let $locale only affect sent mail.

    Proposal (A):

 -1) change default $locale to follow env
 -2) change default $*_format to insert English ! (for now)
 -3) make time %expandos follow env by default
 -4) add a modifier char ":" to make time %expandos follow $locale
 -5) insert (4) in default $date_format (used in default $attribution)

    Alternative (B):

 -3) make time %expandos follow env for index (and friends)
 -4) make time %expandos follow $locale for attribution
 -5) add a modifier char to make time %expandos follow the other one

    One or the other, this will break much more existing muttrcs than
the 1158 patch. However it's nicer design. Patch 1158 was voluntarily
designed /oddly/, so to not break any config; it has not been accepted.


Bye!    Alain.
-- 
Give your computer's unused idle processor cycles to a scientific goal:
The Folding@home project at <URL:http://folding.stanford.edu/>.