You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Michal Palička <Mi...@cleverlance.com> on 2006/10/23 11:59:51 UTC

Locale used when expanding keywords ($Date$)

Hello,

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.

----------

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 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?


Thanks in advance

Michal Palicka
Cleverlance

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


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

Posted by Ryan Schmidt <su...@ryandesign.com>.
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