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

Re: svn checkout - special characters in file name are not encoding properly

From: Vincent Lefevre <vincent-svn_at_vinc17.net>
Date: Thu, 12 Aug 2010 02:19:03 +0200

On 2010-08-11 19:55:01 +0200, Stefan Sperling wrote:
> On Wed, Aug 11, 2010 at 05:23:31PM +0200, Vincent Lefevre wrote:
> > On 2010-08-11 16:26:32 +0200, Vincent Lefevre wrote:
> > > Configuring a UTF-8 locale can yield non-portable behavior.
>
> Such as?

Outputting messages in a different language. Or any other
non-portable behavior. Who knows...

> > > There's a good reason why various scripts do a "LC_ALL=C".
>
> Then those scripts are written for projects which use ASCII filenames.

That's unspecified.

> > > Moreover there's no portable way to select a UTF-8 locale.
>
> Then your script will have to deal with the intricacies of supporting
> several platforms when selecting the UTF-8 locale. For most platforms,
> "export LC_CTYPE=en_US.UTF-8" should work fine.

Not all. Thus this is bad.

> Well, you can use en_US.UTF-8 to force the output to English.

Wrong. There's no guarantee to work. And too often it doesn't work.

> > And I think that "Do not use svn for scripts, reimplement
> > everything using bindings." would not be a wise answer.
>
> Scripts written against bindings won't break when we change the
> command line output (which happens every once in a while).

It is certainly a better solution, but requires too much work
in practice.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Received on 2010-08-12 02:19:47 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.