email.charsets trouble

Christian Ebert blacktrash at gmx.net
Mon Dec 1 05:43:00 CST 2008


Hi Giorgos,

* Giorgos Keramidas on Monday, December 01, 2008 at 12:16:22 +0200
> On Mon, 1 Dec 2008 11:11:12 +0100, Christian Ebert <blacktrash at gmx.net> wrote:
>> So, there are the following bugs:
>> 
>> 1) documentation (hgrc 5): an ui.encoding setting doesn't exist
>> 2) ui.fallbackencoding is not consulted
>>   (but probably should be over util._fallbackencoding)

Actually 2) _does_ work, except for notify.test = true. Which is
why I got even more confused when testing ;-)

Seems

[ui]
fallbackencoding = iso-8859-7

is what you want.

> Something related to this is probably the main problem, but the
> hgwebdir.cgi is already running in "iso-8859-7" mode.

Probably doesn't have an effect for notify, only for web.

> I'll try setting ui.encoding too :)

hehe

Could you try with ui.fallbackencoding = iso-8859-7 in
<repo>/.hg/hgrc ? I get notifications in iso-8859-7 of your repo
with that setting -- no need to set email.charsets even, because
ui.fallbackencoding changes util._fallbackencoding and is
automatically in email.charsets.

It seems that I only muddled up only the docs, and
ui.fallbackencoding is what you need exactly what it is meant
for. 

Additionally notify should behave similar to patchbomb for its
test mode, where no conversion takes place.

c
-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_
Ein deutscher Western/A German Western
-->> http://www.blacktrash.org/underdogma/ccc.html
-->> http://www.blacktrash.org/underdogma/ccc-en.html


More information about the Mercurial mailing list