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
me.
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