You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Russell E Glaue <rg...@cait.org> on 2004/10/07 16:35:22 UTC
svnversion locale error LANG LC_ALL
Okay here is one to be documented in this mail list archive.
Regarding Subversion 1.1.0
svnversion: error: cannot set LC_ALL locale
svnversion: error: environment variable LANG is en_US
svnversion: error: please check that your locale name is correct
You will get this error if you have the LANG environment variable set to
some string, like "en_US".
Particularily if you are compiling on Mac OS X 10.2.8 which apparently
has LANG set to "en_US" by default when you begin a terminal shell session.
I read one other person's posting, after searching Google, who was
getting this error and did not know what to do. So here is what you need
to do.
To fix, do not set LANG to any value. leave it blank.
You will get the above error at the end of executing 'make install' or
when executing 'svnversion'.
-RG
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svnversion locale error LANG LC_ALL
Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
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
Re: svnversion locale error LANG LC_ALL
Posted by Russell E Glaue <rg...@cait.org>.
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
Re: svnversion locale error LANG LC_ALL
Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svnversion locale error LANG LC_ALL
Posted by Russell E Glaue <rg...@cait.org>.
Peter N. Lundblad wrote:
>On Thu, 7 Oct 2004, Russell E Glaue wrote:
>
>
>>Okay here is one to be documented in this mail list archive.
>>
>>Regarding Subversion 1.1.0
>>
>>svnversion: error: cannot set LC_ALL locale
>>svnversion: error: environment variable LANG is en_US
>>svnversion: error: please check that your locale name is correct
>>
>>You will get this error if you have the LANG environment variable set to
>>some string, like "en_US".
>>
>>Particularily if you are compiling on Mac OS X 10.2.8 which apparently
>>has LANG set to "en_US" by default when you begin a terminal shell session.
>>
>>
>
>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.
>
>Thanks,
>//Peter
>
>
>
What Operating System are you using or referring to?
'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.
-RG
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svnversion locale error LANG LC_ALL
Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Thu, 7 Oct 2004, Russell E Glaue wrote:
> Okay here is one to be documented in this mail list archive.
>
> Regarding Subversion 1.1.0
>
> svnversion: error: cannot set LC_ALL locale
> svnversion: error: environment variable LANG is en_US
> svnversion: error: please check that your locale name is correct
>
> You will get this error if you have the LANG environment variable set to
> some string, like "en_US".
>
> Particularily if you are compiling on Mac OS X 10.2.8 which apparently
> has LANG set to "en_US" by default when you begin a terminal shell session.
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.
Thanks,
//Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org