[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: Branko Čibej <brane_at_xbc.nu>
Date: 2002-06-04 23:48:40 CEST

Marcus Comstedt wrote:

>=?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.
>
Yes, I know about 'env'. My point it that this solution won't work on
non-Unix systems.

>>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.
>
>
The order of options never matters. --locale is interpreted in main(),
along with the other options, and before any real work is done.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
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:49:12 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.