Consequences for use of hg for other applications than SCM was Re: German umlauts in file names

Alexander Belchenko bialix at ukr.net
Tue Jul 1 07:05:32 CDT 2008


Matt Mackall пишет:
> On Sat, 2008-06-21 at 00:54 +0200, Marko Käning wrote:
>> So, then the next question. How do I teach mercurial to use UTF-8 under Windows?
> 
> First you have to set your system to operate in UTF-8 mode. I believe
> that's known as CP65001.
> 

CP65001 cannot be used as alias to UTF-8 at least on Windows 2000 + Python 2.5:

C:\>chcp 65001

C:\>chcp
Текущая кодовая страница: 65001

C:\>python -c "import sys; print sys.stdout.encoding"
cp65001

C:\>python -c "print u''.encode('cp65001')"
Traceback (most recent call last):
   File "<string>", line 1, in <module>
LookupError: unknown encoding: cp65001

C:\>python -c "import sys; print sys.getfilesystemencoding()"
mbcs



More information about the Mercurial mailing list