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

Re: svn commit: r23305 - trunk/contrib/client-side

From: David James <james_at_cs.toronto.edu>
Date: 2007-01-30 23:51:14 CET

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

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.