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

Re: error: cannot set LC_ALL locale

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-01-14 20:42:07 CET

On Jan 14, 2007, at 12:31, Thomas De Contes wrote:

> Le dimanche, 14 jan 2007, à 18:49 Europe/Paris, Ryan Schmidt a écrit :
>
>> On Jan 14, 2007, at 11:47, Thomas De Contes wrote:
>>
>>> my shell is tcsh
>>> i have "setenv LANG fr" in my .tcshrc because i need it for some
>>> applications
>>>
>>>
>>> when i type "svn" i get
>>> svn: error: cannot set LC_ALL locale
>>> svn: error: environment variable LANG is fr
>>> svn: error: please check that your locale name is correct
>>>
>>> i get "Type 'svn help' for usage." if i comment "setenv LANG fr"
>>> in .tcshrc, but i need it
>>> how to do, for this problem about LC_ALL locale ?
>>
>> So it sounds like Subversion does not understand the locale "fr".
>> Check the contents of ${PREFIX}/share/locale and see what kinds of
>> locale names are supported. I suspect it may be something like
>> "fr_FR".
>
> thank you very much :-)
> with "setenv LANG fr_FR" it works fine :-)
>
> but it's strange, my /usr/share/locale/ contains a folder "fr_FR",
> but a folder "fr" too
> so why doesn't it worked with "setenv LANG fr" ?

Look inside both the fr and the fr_FR folders. There should be a
folder LC_MESSAGES. Look inside that. Is there a file subversion.mo
inside both of them? I'm guessing there's only a subversion.mo inside
the fr_FR/LC_MESSAGES folder, which is why only that locale
designation works. You could copy fr_FR/LC_MESSAGES/subversion.mo to
fr/LC_MESSAGES/subversion.mo if you want the locale fr to work for
Subversion too.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jan 14 20:42:35 2007

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

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