questions as a diff

Martin Geisler mg at daimi.au.dk
Sat Mar 28 12:18:33 CDT 2009


Benoit Boissinot <benoit.boissinot at ens-lyon.org> writes:

>>  HGENCODING::
>> -    This overrides the default locale setting detected by Mercurial.
>> +    This supercedes the encoding derived from the locale setting
>> +    detected by Mercurial.
>> +XXX the original text pretended ENCODING and LOCALE were equivalent.
>> +I'm assuming that LOCALE includes translation (and as such was a superset)
>> +If I'm wrong. Fix the message some other way or explain what it actually
>> +meant and I'll figure out something else.
>
> I think HGENCODING was done before we had locale support, hence the
> mixup. I don't think HGENCODING has any effect on LOCALE.

It affects how the translation is encoded before being sent to the
terminal. So I can do

  % LC_ALL=da_DK.UTF-8 HGENCODING=Latin-1 hg help

and get Latin-1 encoded output even though the locale specifies UTF-8.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090328/cd649128/attachment.pgp 


More information about the Mercurial-devel mailing list