Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Martin v. Löwis
> > 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). > > You're right, sorry for the misinformation. > > An exception should be made for gettext message files, too? In principle, perhaps. However, Pyth

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Stephen J. Turnbull
"Martin v. Löwis" writes: > > 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). You're right, sorry for the misinform

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Martin v. Löwis
> >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

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Oleg Broytmann
On Thu, Aug 06, 2009 at 12:34:39AM +0900, Stephen J. Turnbull wrote: > Oleg Broytmann writes: > >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 conver

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Stephen J. Turnbull
Oleg Broytmann writes: >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

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Dirkjan Ochtman
On Wed, Aug 5, 2009 at 16:35, Oleg Broytmann wrote: >   Perhaps that's not a big issue for Python, but it's certainly a big > issue for me. I think there are extensions that try to deal with it. Have a look: http://mercurial.selenic.com/wiki/UsingExtensions If not, it should be easy to come up w

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Oleg Broytmann
On Wed, Aug 05, 2009 at 04:04:24PM +0200, Dirkjan Ochtman wrote: > On Wed, Aug 5, 2009 at 15:57, Oleg Broytmann wrote: > >   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

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Dirkjan Ochtman
On Wed, Aug 5, 2009 at 15:57, Oleg Broytmann wrote: >   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

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Oleg Broytmann
On Wed, Aug 05, 2009 at 05:50:03PM +0400, Oleg Broytmann wrote: >Subversion handles these issues by providing ... > svn:mime-type (handles both MIME type and charset) > file-by-file basis. Dirkjan, how does Mercurial handles charsets? If I have three files in my repository - one in utf-8, a