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

Re: utf-8 sanity check.

From: Ulrich Drepper <drepper_at_redhat.com>
Date: 2002-07-11 03:09:16 CEST

On Wed, 2002-07-10 at 15:01, Marcus Comstedt wrote:

> env LC_CTYPE=en_GB.ISO8859-1 svn --option1=¤ \
> --locale=en_GB.ISO8859-15 --option2=¤ blah blah
>
> should the value of --option1 be interpreted according to latin-1 or
> latin-9? What about --option2?

All parameters must be interpreted according to the locale of the
shell. This gets overwritten by the use of env. So all parameters must
use Latin1. If you'd want some option which overwrites the locale for
subsequent characters you might get into trouble. E.g., in

   svn --locale=en_US.IBM273 foo bar

the <SPACE> you see in the mail is actually a <U0080> in IBM272 which
might be no separating character in the locale and therefore svn might
be called with just one parameter (assuming that neither "foo" nor "bar"
are byte representations for a white-space character in IBM273, I
haven't checked it). You should get the idea.

If locale-encoding-specific options are needed you need to pass them
separately from the command line, e.g., in a config file.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Received on Thu Jul 11 03:08:49 2002

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.