[Svnmerge] Encoding problem in svnmerge commit message file

Romulo Ceccon romuloceccon at gmail.com
Fri Dec 7 05:33:25 PST 2007


On Dec 6, 2007 11:14 PM, Raman Gupta <rocketraman at fastmail.fm> wrote:
> Basically, what we need to be sure about is which encoding svn commit
> defaults to when it reads log message files, and which python method
> returns that same encoding on every platform.

As far as I can tell from the sources SVN uses GetThreadLocale
<http://msdn2.microsoft.com/en-us/library/ms776331.aspx> to get the
file encoding and GetConsoleOutputCP
<http://msdn2.microsoft.com/en-us/library/ms683169.aspx> to get the
console encoding. For me they return CP1252 and CP850, respectively,
which is not exactly what Python returns:

Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.getfilesystemencoding()
mbcs
>>> print sys.stdout.encoding
cp850
>>>

Romulo



More information about the Svnmerge mailing list