[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: Nuutti Kotivuori <naked_at_iki.fi>
Date: 2002-07-11 00:19:33 CEST

Ben Collins-Sussman wrote:
> * our application's main() calls setlocale(LC_ALL, locale) if
> --locale is passed by the user. This officially sets the locale
> for our process.

Tried this out with a small local modification. This also has the
local modification to the log output, that has not been committed
yet. I just allowed the --locale option on the subcommand log.

See this:

naked@oro:~/src/subversion/svn$ svn log -rHEAD
------------------------------------------------------------------------
rev 2463: jerenkrantz | 2002-07-10 22:40:21 +0300 (Wed, 10 Jul 2002) | 3 lines

naked@oro:~/src/subversion/svn$ svn log --locale fi_FI -rHEAD
------------------------------------------------------------------------
rev 2463: jerenkrantz | 2002-07-10 22:40:21 +0300 (ke, 10 heinä  2002) | 3 lines

Woowoo!

Then:

naked@oro:~/src/subversion/svn$ LC_TIME=fi_FI svn log -rHEAD
------------------------------------------------------------------------
rev 2463: jerenkrantz | 2002-07-10 22:40:21 +0300 (Wed, 10 Jul 2002) | 3 lines

naked@oro:~/src/subversion/svn$ LC_TIME=fi_FI svn log --locale "" -rHEAD
------------------------------------------------------------------------
rev 2463: jerenkrantz | 2002-07-10 22:40:21 +0300 (ke, 10 heinä  2002) | 3 lines

If you don't understand why this is, take a peek at the source, it
will come clear. This is not to say that the rationale there couldn't
be questioned.

But anyway, just a brief sample of things to come.

-- Naked

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 11 00:20:58 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.