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

Re: svnversion locale error LANG LC_ALL

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2004-10-08 22:36:47 CEST

On Fri, 8 Oct 2004, Russell E Glaue wrote:

> Peter N. Lundblad wrote:
>
> >On Fri, 8 Oct 2004, Russell E Glaue wrote:
> >
> >
> Okay, so Debian GNU is our Subversion Server - I can test that too.
> On the Debian OS, I set 'LANG=en_US' and then execute 'svnversion' and I
> get the following error:
>
> svnversion: error: cannot set LC_CTYPE locale
> svnversion: error: environment variable LANG is en_US
>
You may not have that locale installed on the server.

> If we have the locale set up incorrectly, then it is wrong for all three
> systems: Mac OS X 10.2.8, Fedora Core 2 Linux, Debian GNU Linux 2.4.21 .
> And they are not hacked up OS's.
>
> So you tell me, is my locale not set up correctly?

I would say it isn't. You can try executing the command
locale -a
and see if en_US is listed among the locales there.

> Why is this error being received executing 'svnversion' when the
> environment variable LANG is set? And the error is not received when
> LANG is not set?
>
That's because when no environment vars controlling the locale (LANG,
LC_*, etc.) are set, something that's called the "C" locale is used. This
is the default, meaning not the default for your system, but the same
everywhere. This locale always has to be available.

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 8 22:22:14 2004

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