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

Re: Check-out fails with LANG=C

From: Vincent Lefevre <vincent-svn_at_vinc17.net>
Date: Fri, 19 Jul 2013 15:41:00 +0200

On 2013-07-19 15:33:55 +0200, Stefan Sperling wrote:
> On Fri, Jul 19, 2013 at 03:22:33PM +0200, Vincent Lefevre wrote:
> > On 2013-07-09 20:21:33 +0200, Branko Čibej wrote:
> > > Unlike on Windows and Mac OS (the latter at least with HFS+), the is no
> > > notion of native filesystem encoding on other Unix-like platforms. The
> > > best we can do is look at the locale settings, specifically, LC_CTYPE.
> >
> > No, the best you can do is to let the user choose. LC_CTYPE typically
> > specifies the encoding used by the *terminal*,
>
> No, it determines the character set used by various standard C library
> functions that deal with (usually single-byte) characters.

No, how C library functions behave depend on the current locale,
which is "C" by default. A program needs to call setlocale() to
change the current locale. Obviously it must not do that blindly:
a program may need to deal with different encodings and so on...

-- 
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 / AriC project (LIP, ENS-Lyon)
Received on 2013-07-19 15:41:32 CEST

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