[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: Greg Stein <gstein_at_lyra.org>
Date: 2002-06-04 22:22:27 CEST

On Tue, Jun 04, 2002 at 10:07:22AM -0500, Ben Collins-Sussman wrote:
>...
> Or, as kfogel proposed earlier, I think a good client application
> should allow the user to specify a temporary locale for the log
> message. Something like
>
> svn commit -m "log message" --locale=some.locale

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.

> This way the 95% case is covered by assuming the system locale, and
> when weirdos like kfogel occasionally decide to write a BIG5 log
> message in emacs, he can "nudge" the svn client as a one time thing.

I agree, but we don't need More Parameters(tm). Setting the locale for a
single program invocation is easy to do.

[ that said: recall that something like the --locale switch is part of the
  client code. something like a GUI client could have various switches and
  configs and whatnot. the client only needs to worry about constructing
  UTF-8 by the time it hits the SVN libraries ]

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 4 22:22:40 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.