On Mon, Jul 09, 2007 at 04:23:05PM -0500, Peter Samuelson wrote:
> 
> [Daniel Jacobowitz]
> > [EMAIL PROTECTED]:~% svn ls $svkrepo
> > svn: warning: cannot set LC_CTYPE locale
> > svn: warning: environment variable LANG is en_US
> > svn: warning: please check that your locale name is correct
> 
> It is not just Subversion that complains...
> 
> $ export LANG=en_US
> $ locale
> locale: Cannot set LC_CTYPE to default locale: No such file or directory
> locale: Cannot set LC_MESSAGES to default locale: No such file or directory
> locale: Cannot set LC_ALL to default locale: No such file or directory

Um, that means something completely different.  It means that you
don't have en_US generated.  Locale and perl do not complain with my
locale settings on my system.

[EMAIL PROTECTED]:~% locale
LANG=en_US
LANGUAGE=en_US:en_GB:en
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME=C
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
[EMAIL PROTECTED]:~% svn ls $svkrepo
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_US
svn: warning: please check that your locale name is correct
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_US
svn: warning: please check that your locale name is correct

> > If I set LC_CTYPE to C, it does not complain.  It is trying to open an
> > en_US message translation in /usr/share/locale, and there isn't one.
> 
> No, that would be LC_MESSAGES.  LC_CTYPE is for character encoding.
> Subversion needs to know this because it translates lots of things to
> and from UTF-8 (which it uses internally), notably pathnames.  As such,
> having a correct LC_CTYPE affects significant functionality, and I
> think it's appropriate for it to warn you when LC_CTYPE is invalid.

Sorry, I was guessing from the strace output as to why setlocale
failed.  No, it is not OK to close this bug report; can you reproduce
it with a locale that you've actually got?

-- 
Daniel Jacobowitz
CodeSourcery


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to