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

Re: Win32 build locale broken

From: Yongwei Wu <wuyongwei_at_gmail.com>
Date: 2006-09-11 04:21:27 CEST

On 9/8/06, Ryan Schmidt <subversion-2006c@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/
Received on Mon Sep 11 04:22:29 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.