On 1/30/07, Malcolm Rowe <malcolm-svn-dev@farside.org.uk> wrote:
> On Tue, Jan 30, 2007 at 02:31:59PM -0800, dlr@tigris.org wrote:
> > Fix svnmerge.py to work for those with non-English locales set in
> > their environment.
> >
> > * contrib/client-side/svnmerge.py
> > Set LC_ALL -- rather than LC_MESSAGES -- to C, as the Subversion
> > command-line doesn't acknowledge LC_MESSAGES in svn_cmdline_init().
> >
>
> Should it?
Subversion does respect LC_MESSAGES, but it favours LC_ALL over
LC_MESSAGES. This behaviour is correct AFAIK.
On my machine, though, the output of 'svn help' looks fine when I set
LC_ALL to pt_BR, but it is corrupted when I set LC_MESSAGES to pt_BR.
Here's an example:
If I set LC_MESSAGES:to pt_BR, the usage string is: "uso: svn
<sub-comando> [op?\195?\167?\195?\181es] [args]"
If I set LC_ALL to pt_BR, the usage string is: "uso: svn <sub-comando>
[opções] [args]"
The warning messages also come out a bit funny when you set LC_MESSAGES:
david% LC_ALL=sdf svn
svn: error: cannot set LC_ALL locale
svn: error: environment variable LC_ALL is sdf
svn: error: please check that your locale name is correct
david% LC_MESSAGES=sdf svn
svn: error: cannot set LC_ALL locale
svn: error: environment variable LANG is not set
svn: error: please check that your locale name is correct
Cheers,
David
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jan 30 23:51:29 2007