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

Re: Locale Issue in Subversion checkout with svn:keywords

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Thu, 7 Jul 2011 18:26:29 +0400

2011/7/7 BRAGA, Bruno <bruno.braga_at_gmail.com>:
> Hi,
>
> I would like to ask about the locale handling in Subversion. I apologize if
> this has been discussed here before, but I did not find any relevant
> references that address the same issue.
>
> Basically, we are having issues with our software deployment procedures
> because the checkout also fills the props svn:keywords of all files
> according to local locale (defined at LC_MESSAGES, I believe). We have a
> large multi-language environment, and we have to deal with logs in languages
> such as Japanese, and worse, remote operations using SSH sessions may
> transport the local locate of the workstations, messing up everything.
>
> So, I was wondering if there is any way to set the locale of the SVN client
> in a server, to ensure it will always checkout using a certain locale (of
> course, English). Doing so in Japanese or Chinese, for instance, messes up
> with the compilation of files, if you have enforced locale tags en every
> file. One good example if the $Date $ keyword, which gives the date in
> Unicode chars for Japanese.

1) Do not use $Date$. It is not for you. It 1) uses local timezone, 2)
uses utf-8 regardless of the actual file encoding. Forcing a locale
would not solve 1).

2) Do not use $Id, if you have non-english characters in committer
login names or in file name (because of utf-8, see above)

Any other keyword is causing trouble?

>
> If it is not available, I would like to suggest maybe adding this to the
> subversion/config file.
>

Best regards,
Konstantin Kolinko
Received on 2011-07-07 16:27:05 CEST

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.