[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: Russell E Glaue <rglaue_at_cait.org>
Date: 2004-10-08 21:31:45 CEST

Peter N. Lundblad wrote:

>On Fri, 8 Oct 2004, Russell E Glaue wrote:
>
>
>
>>Peter N. Lundblad wrote:
>>
>>
>>
>>>Are you sure you have your locale set up correctly. Subversion checks the
>>>return value of setlocale, which many other programs don't. I don't know
>>>how OS X handles locales. I've successfully used svnversion with
>>>LANG=sv_SE on Linux.
>>>
>>>
>>>
>>What Operating System are you using or referring to?
>>
>>
>
>I'm on Debian GNU/Linux.
>
>
>
>>'setlocale' is not a binary that exists on Mac OS X 10.2.8 nor Fedora
>>Core 2 Linux.
>>I had to have my locale set up this way ( LANG=en_US ) in order to get
>>earlier (0.17 - 0.37) subversion releases to work on the Mac and Linux
>>workstations deployed in our company.
>>
>>
>>
>setlocale is a C library function used to get the running program to use a
>specific locale. It can return an error on failure, but many programs just
>call it without checking the return value.
>
>Regards,
>//Peter
>
>
>
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

Without LANG being defined, there is no error executing 'svnversion'.

We are using Subversion 0.37 right now at this moment on the server, so
I could not test this for release 1.1. We have the System OS maintained
through packages.

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?
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?

-RG

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

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.