You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Eric Lemes <er...@gmail.com> on 2006/06/09 19:09:40 UTC
Problem with SVN Windows and brazilian locale (encoding)
Hello,
First I would like to congratulate all developers for this great software:
Subversion!
I'm using it in my production environment, under Windows, and it's very
stable.
I did a post with this subject in the users list, and no one could help me
there. I just wanna know if this is a misuse or a bug.
I think svn command line tools uses Windows Regional settings for his
localization and he spits chars in the "codepage" configured in Regional
Settings "Advanced" Tab (in the "select a language for non-unicode
programs"). My problem is that when I set this to "Brazilian Portuguese",
svn tools spit good chars in windows console, but I can't trap the stdout
from my C# app in UTF8 or Default (ANSI Encoding, iso-8859-1 I think).
I tried to set LANG=en_US, has someone suggest me in users, but didn't
affected anything.
I did a test with a common text-file, saved as ANSI with weird chars: "çã".
In a HEX editor, these two chars goes as E7 and E3.
With a svnlook > textfile.txt (as ANSI too), I got 87 and C6 for the same
chars.
Seeing the output of the UTF-8 file (parsed from svn --xml), I got two bytes
for every weird char: "ç" = C3 A7, "ã" = C3 A3.
Is this a bug?
Thanks in advance,
Eric Lemes