[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Locale used when expanding keywords ($Date$)

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-10-23 19:55:25 CEST

On Oct 23, 2006, at 06:59, Michal Palička wrote:

> is there any way to change the behavior of the SVN client related
> to keyword expansion?
> It seems that the client uses the current locale to expand $Date$.
>
> This causes a problem for us. We use Czech locale and the result of
> the expansion
> contains east-european (non-ascii) characters that are specific for
> our language
> (usually in the abbreviated name of the day).
>
> When the expansion occurs in an XML file (which contains ASCII
> characters only),
> then the parser expects its content to be encoded in UTF-8 (because
> of the regional characters).
>
> The parser rejects such a file as corrupted.

No solution at this time that I'm aware of. Well, you could set LANG
to C or some other locale that uses only ASCII characters. This seems
to be this issue:

http://subversion.tigris.org/issues/show_bug.cgi?id=2332

> It would be nice, if the SVN client could be told to use some
> specific locale (e.g. en_US)
> - instead of the current one. Alternatively, the server's locale
> could be used.
>
> When the development team is located in multiple countries, the
> $date$ is shown
> in multiple formats (locales). Which is also confusing.

I don't think that should be the case, since the keyword substitution
happens entirely on the client side, so unless you're checking out a
working copy, then changing your locale on your client, then
updating, all the keywords should be expanded in a way that makes
sense to you, locally.

> I found some similar posts from the past years, but none of them
> contains
> any reasonable solution:
>
> http://svn.haxx.se/users/archive-2005-09/1215.shtml
>
> http://svn.haxx.se/users/archive-2004-09/0009.shtml
>
> ----------
>
> Does the current SVN version solve this problem?
> Are there any plans to modify the client in relation to locale usage?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 23 19:56:24 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.