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

Re: Call For Votes: converting log messages to UTF-8

From: Marcus Comstedt <marcus_at_mc.pp.se>
Date: 2002-06-04 23:39:41 CEST

=?UTF-8?B?QnJhbmtvIMSMaWJlag==?= <brane@xbc.nu> writes:

> >Nope. We don't have to do anything. The user can always do:
> >
> >$ LC_CTYPE=some.locale svn commit -m "log message"
> >
> >That sets the LC_TYPE environment variable for just the one execution of the
> >'svn' program.
> >
>
> Please, let's just for once hear some design discussion that doesn't
> assume all the world is Unix. What you propose only works in
> Bourne-like shells (even the csh incantation is different).

Not that it really addresses your complaint, but there is a neat
command called `env' which I often use because it allows you to run
commands with local environment variable settings regardless of
shell. You just run it like this

  env LC_CTYPE=some.locale svn commit -m "log message"

i.e. just like the Bourne shell syntax but with the command name "env"
first. Since the syntax is parsed by env, this works fine in (t)csh
as well. It probably even works on Windows (I'm assuming that the
command env is included in cygwin).

Just had to point this out, since this incredibly useful command seems
to be little known.

> We already have a --locale option. It was introduced so that
> front-ends that wrap the command line client (and there will be such;
> Emacs vc-mode comes to mind) will get predictable output in the
> presence of localized messages. We might as well reuse that, or
> introduce a similar option (--input-locale?) for log messages, file
> names, prop names, etc. I'd support that, FWIW.

How (when) will the --locale option affect the locale setting? If I
do

  svn -m 'log message' --locale zh_TW.BIG5

should this be interpreted differently from

  svn --locale zh_TW.BIG5 -m 'log message'

? Environment variables are simpler because they are always set
before the program execution starts.

  // Marcus

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 4 23:44:14 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.