[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Problem with SVN Windows and brazilian locale (encoding)

From: Eric Lemes <ericlemes_at_gmail.com>
Date: 2006-06-09 21:09:40 CEST

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
Received on Fri Jun 9 21:10:20 2006

This is an archived mail posted to the Subversion Dev mailing list.