[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-07-11 18:16:24 CEST

Marcus Comstedt <marcus@mc.pp.se> writes:

> [...] However, there is a slight problem with --locale. The handle
> returned by apr_xlate_open is cached globally, without any way to
> expire it. This means that if any UTF conversion takes place
> _before_ the --locale argument is passed, the new locale will not be
> used since a convertor has already been created using the locale set
> in the environment variables. As long as you make sure to always
> put the --locale argument _first_ on the command line, everything
> should be hunky dory though.
> For a proper fix of the situation, two possibilities exist. Either
> provide a mechanism for invalidating the cached convertor (simple),
> or make sure that --locale is parsed first (more work).

Conceptually, I much prefer the second option. It seems cleaner to

Up till now, svn commandline switches have always been global; order
has never mattered. I would hate to have the placement of --locale
change behaviors; I'd like it to be "global" to all target paths on
the commandline.

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