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

Re: svn command --cl don't support names that contain chinese characters.

From: Daniel Shahaf <danielsh_at_apache.org>
Date: Thu, 25 Apr 2013 17:36:53 +0300

Philip Martin wrote on Thu, Apr 25, 2013 at 15:19:45 +0100:
> Daniel Shahaf <danielsh_at_apache.org> writes:
> > On Thu, Apr 25, 2013 at 08:37:01AM -0400, C. Michael Pilato wrote:
> >> Committed my patch:
> >
> > ... which means the fix will likely be released in 1.7.10 and 1.8.0-alpha1 (or
> > 1.8.0-rc1). The fix does not affect tortoisesvn; if it exhibits a problem,
> > contact the tortoisesvn developers at http://tortoisesvn.net/support.html.
> The workaround is to switch to a UTF-8 environment. If that is not
> possible you need to find some way of entering the UTF-8 representation
> of the changelist at the command line. In an ISO-8859-1 environment on
> Linux I can use the 好 changelist by doing:
> $ svn st --cl `printf "\345\245\275"` wc
> --- Changelist '?\229?\165?\189':
> wc/f

IOW, the workaround is to enter a $LOCAL_ENCODING string whose
representation in bytes is the UTF-8 of the string you want. I haven't
tested that, but you might be able to compute such a string via
'svn status | sed -ne 's/.*Changelist//p' | iconv -f utf-8 -t $LOCAL_ENCODING'.
Received on 2013-04-25 16:37:09 CEST

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.