[Python-Dev] PEP 385: Mercurial issues

"Martin v. Löwis" martin at v.loewis.de
Wed Aug 5 20:37:55 CEST 2009


>  >    Dirkjan, how does Mercurial handles charsets? If I have three files in
>  > my repository - one in utf-8, another in koi8-r, and the third in cp1251
>  > encoding - I certainly don't want to convert them back and force, but I
>  > want hg web interface to provide charset in the Content-Type header.
> 
> How is this relevant to PEP 385?  I hope the answer is "not at all".
> I've been there, done that, and my answer is "never again".  (I'm not
> telling you what to do with *your* repository, just that I don't see
> any good reason for having any encodings but UTF-8 in Python's.)

Just in case my previous message gets overlooked: PEP 8 mandates Latin-1
for Python 2.x source code (except for files that test PEP 263).

Regards,
Martin


More information about the Python-Dev mailing list