You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Yongwei Wu <wu...@gmail.com> on 2006/09/08 04:22:57 UTC
Win32 build locale broken
I am shocked to find that svn outputs this on Chinese version of Windows:
?\232?\175?\183?\228?\189?\191?\231?\148?\168?\226?\128?\156svn help?\226?\128?\
157?\228?\187?\165?\229?\190?\151?\229?\136?\176?\231?\148?\168?\230?\179?\149?\
229?\146?\140?\229?\184?\174?\229?\138?\169?\227?\128?\130
Of course, it is not very difficult to find out what this is. Which a
program to convert ?\232 to char(232), I finally got:
C:\TEMP>svn 2>&1 | myconvert | iconv -f utf-8 -t gbk
请使用"svn help"以得到用法和帮助。
It really surprised me this is the default behaviour of svn on
Windows. To reproduce the problem on your PC, use something like "set
LANG=zh_CN".
The version I downloaded is the Win32 build 1.3.2 by Branko, with URL:
http://subversion.tigris.org/files/documents/15/32473/svn-win32-1.3.2.zip
Best regards,
Yongwei
--
Wu Yongwei
URL: http://wyw.dcweb.cn/
Re: Win32 build locale broken
Posted by Yongwei Wu <wu...@gmail.com>.
On 9/8/06, Ryan Schmidt <su...@ryandesign.com> wrote:
>
> On Sep 8, 2006, at 06:22, Yongwei Wu wrote:
>
> > I am shocked to find that svn outputs this on Chinese version of
> > Windows:
> >
> > ?\232?\175?\183?\228?\189?\191?\231?\148?\168?\226?\128?\156svn
> > help?\226?\128?\
> > 157?\228?\187?\165?\229?\190?\151?\229?\136?\176?\231?\148?\168?
> > \230?\179?\149?\
> > 229?\146?\140?\229?\184?\174?\229?\138?\169?\227?\128?\130
> >
> > Of course, it is not very difficult to find out what this is. Which a
> > program to convert ?\232 to char(232), I finally got:
> >
> > C:\TEMP>svn 2>&1 | myconvert | iconv -f utf-8 -t gbk
> > 请使用"svn help"以得到用法和帮助。
> >
> > It really surprised me this is the default behaviour of svn on
> > Windows. To reproduce the problem on your PC, use something like "set
> > LANG=zh_CN".
> >
> > The version I downloaded is the Win32 build 1.3.2 by Branko, with URL:
> >
> > http://subversion.tigris.org/files/documents/15/32473/svn-
> > win32-1.3.2.zip
>
> I believe you need to set the APR_ICONV_PATH variable to the iconv
> folder of the Subversion installation. See this discussion:
BTW, according to the INSTALL file, it indicates Windows needs
apr-iconv. However, there is no such package in Cygwin, and I can make
the Cygwin svn emit the garbaged text too, while I am unable to find a
similar directory to set APR_ICONV_PATH to make the display correct.
Any ideas?
Best regards,
Yongwei
--
Wu Yongwei
URL: http://wyw.dcweb.cn/
Re: Win32 build locale broken
Posted by Yongwei Wu <wu...@gmail.com>.
On 9/8/06, Ryan Schmidt <su...@ryandesign.com> wrote:
>
> On Sep 8, 2006, at 06:22, Yongwei Wu wrote:
>
> > I am shocked to find that svn outputs this on Chinese version of
> > Windows:
> >
> > ?\232?\175?\183?\228?\189?\191?\231?\148?\168?\226?\128?\156svn
> > help?\226?\128?\
> > 157?\228?\187?\165?\229?\190?\151?\229?\136?\176?\231?\148?\168?
> > \230?\179?\149?\
> > 229?\146?\140?\229?\184?\174?\229?\138?\169?\227?\128?\130
> >
> > Of course, it is not very difficult to find out what this is. Which a
> > program to convert ?\232 to char(232), I finally got:
> >
> > C:\TEMP>svn 2>&1 | myconvert | iconv -f utf-8 -t gbk
> > 请使用"svn help"以得到用法和帮助。
> >
> > It really surprised me this is the default behaviour of svn on
> > Windows. To reproduce the problem on your PC, use something like "set
> > LANG=zh_CN".
> >
> > The version I downloaded is the Win32 build 1.3.2 by Branko, with URL:
> >
> > http://subversion.tigris.org/files/documents/15/32473/svn-
> > win32-1.3.2.zip
>
> I believe you need to set the APR_ICONV_PATH variable to the iconv
> folder of the Subversion installation. See this discussion:
>
> http://svn.haxx.se/users/archive-2006-09/0025.shtml
Thanks. This solves the problem; and I think the locale is done very
decently: it automatically chooses the English language when I `chcp
437'.
However, I am wondering it would be more user-friendly to emit a
warning when APR_ICONV_PATH is not set, or, better, guess the right
value (binpath/../iconv) when APR_ICONV_PATH is not set?
Best regards,
Yongwei
--
Wu Yongwei
URL: http://wyw.dcweb.cn/
Re: Win32 build locale broken
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 8, 2006, at 06:22, Yongwei Wu wrote:
> I am shocked to find that svn outputs this on Chinese version of
> Windows:
>
> ?\232?\175?\183?\228?\189?\191?\231?\148?\168?\226?\128?\156svn
> help?\226?\128?\
> 157?\228?\187?\165?\229?\190?\151?\229?\136?\176?\231?\148?\168?
> \230?\179?\149?\
> 229?\146?\140?\229?\184?\174?\229?\138?\169?\227?\128?\130
>
> Of course, it is not very difficult to find out what this is. Which a
> program to convert ?\232 to char(232), I finally got:
>
> C:\TEMP>svn 2>&1 | myconvert | iconv -f utf-8 -t gbk
> 请使用"svn help"以得到用法和帮助。
>
> It really surprised me this is the default behaviour of svn on
> Windows. To reproduce the problem on your PC, use something like "set
> LANG=zh_CN".
>
> The version I downloaded is the Win32 build 1.3.2 by Branko, with URL:
>
> http://subversion.tigris.org/files/documents/15/32473/svn-
> win32-1.3.2.zip
I believe you need to set the APR_ICONV_PATH variable to the iconv
folder of the Subversion installation. See this discussion:
http://svn.haxx.se/users/archive-2006-09/0025.shtml
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org