You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Fabian Cenedese <Ce...@indel.ch> on 2005/09/26 11:21:27 UTC

Change locale for $date$?

Hi

We have a network with several Win2K computers, accessing a svn repo
with https on a linux box. The clients use both svn.exe and tsvn. The
problem is, that some have English, others have German windows systems.
Now upon 'update' the $date$ keyword will expand sometimes English,
somtimes German which makes diff'ing a lot harder. Is there a way
either in svn or tsvn to fix the used language for keywords expansion?
(I will also ask on the tsvn list, but some of you may be familiar with
that one as well).

There are already others with the same/similar problem, but I couldn't
find a solution looking through the archives.

keyword expansion date locale.
http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=17048

keyword ID, get local time, not Zulu time
http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=25552

Thanks

bye  Fabi



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

Re: Change locale for $date$?

Posted by Fabian Cenedese <Ce...@indel.ch>.
>>>Yeah, question still remains. But from the answers so far I
>>>take it as a "no", as I had thought previously. So to append
>>>another question: Could something like this be planned for the
>>>future? Maybe as part of some bigger localization changes?
>>
>>On the command-line, it's very easy to have Subversion use a  
>>different locale. Just set the environment variable:
>>
>>LANG=fr_FR svn info
>>
>>That should work for any locale-aware Unix program, not just Subversion.
>
>I know that this should work on *ix. But I wrote in the first mail
>that the clients are on Win2K. There is no LANG variable on
>Windows and setting one doesn't change things either.

Sorry to come back to this but it's getting annoying. I now upgraded
to recent svn 1.2.3. When I now checkout/update I get dates in
English whereas the older svn used German. TSVN 1.2.3-4295
still uses German and I don't know where I can set anything. I now
can't even diff my own projects without a lot of false positives.
Please anyone, how can I solve my problem? Is there a setting
in the config file or anything?

Thanks

bye  Fabi



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

Re: Change locale for $date$?

Posted by Fabian Cenedese <Ce...@indel.ch>.
>>Yeah, question still remains. But from the answers so far I
>>take it as a "no", as I had thought previously. So to append
>>another question: Could something like this be planned for the
>>future? Maybe as part of some bigger localization changes?
>
>On the command-line, it's very easy to have Subversion use a  
>different locale. Just set the environment variable:
>
>LANG=fr_FR svn info
>
>That should work for any locale-aware Unix program, not just Subversion.

I know that this should work on *ix. But I wrote in the first mail
that the clients are on Win2K. There is no LANG variable on
Windows and setting one doesn't change things either.

>Specifically to your question about keyword expansion, since keyword  
>expansion occurs on the client side when you check out or update, it  
>appears that you should set the locale at the time when you check out  
>or update:
>
>LANG=fr_FR svn co $REPO [$WC]
>
>For TortoiseSVN, I have no idea where it gets its locale information  
>from; if that's important to you, ask on their mailing list.

I can imagine (or hope) that TSVN is "only" a user interface but
uses the same code for the main functionality as svn. So they
would both get the information from the same place on Windows.
If that is the case the TSVN people may not even know where
as it "just works" :) But I can ask there anyway.

Thanks

bye  Fabi



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

Re: Change locale for $date$?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 27, 2005, at 15:45, Fabian Cenedese wrote:

>>> Anyway, the question remains the same: Is there some way to
>>> influence svn regarding keyword expansion? Is it always
>>> dependent on the current OS settings? In my case I'd even
>>> like to have it fixed to English even if I have German settings.
>
> Yeah, question still remains. But from the answers so far I
> take it as a "no", as I had thought previously. So to append
> another question: Could something like this be planned for the
> future? Maybe as part of some bigger localization changes?

On the command-line, it's very easy to have Subversion use a  
different locale. Just set the environment variable:

LANG=fr_FR svn info

That should work for any locale-aware Unix program, not just Subversion.

Specifically to your question about keyword expansion, since keyword  
expansion occurs on the client side when you check out or update, it  
appears that you should set the locale at the time when you check out  
or update:

LANG=fr_FR svn co $REPO [$WC]

For TortoiseSVN, I have no idea where it gets its locale information  
from; if that's important to you, ask on their mailing list.



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

Re: Change locale for $date$?

Posted by Fabian Cenedese <Ce...@indel.ch>.
Hi

>>No, but diffs between various checkouts will be harder. e.g. someone
>>checks out with German expansion, changes some files and sends
>>me the whole project. If I diff against my English checkout I will have a
>>lot of changes that aren't really changes but just differently  expanded
>>keywords. I know this case could also be solved with a patch, but it
>>was just an example.
>
>why don't you college create a patch-file instead of sending you the
>whole project? The diff shouldn't contain the different dates.

As mentioned above I know about patches, but that doesn't really matter,
this was just an example. Another example could be that I make a
snapshot/export intended for a certain customer in his language.
OK, dates are not that hard to understand, even in a different
language, but you get what I mean.

>>I think I even have this problem just on my computer. Is it possible
>>that svn and tsvn behave differently? e.g. one does look at locales
>>and the other not? When I have two checkouts, one updated by
>>svn, the other by tsvn the may be different. But of course while
>>trying to reproduce this now they both give the same: ...German,
>>on an English Win2K with German settings.

It could also be a version mixup. We started with an 1.1 svn and
are now working with 1.2, same for tsvn. Maybe the locale was
only added in the 1.2 release or was wrong before. Also funny is:
When I look at the changelog (which include the date of the change
as expanded with the then actual svn version) I see the weekdays
with both 2 or 3 characters. I think the German days are with 2
whereas the English days are abbreviated with 3 characters.

>>Anyway, the question remains the same: Is there some way to
>>influence svn regarding keyword expansion? Is it always
>>dependent on the current OS settings? In my case I'd even
>>like to have it fixed to English even if I have German settings.

Yeah, question still remains. But from the answers so far I
take it as a "no", as I had thought previously. So to append
another question: Could something like this be planned for the
future? Maybe as part of some bigger localization changes?

Thanks

bye   Fabi



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

Re: Change locale for $date$?

Posted by Stephan Zeissler <st...@kuttig.com>.
Ryan Schmidt wrote:

> On Sep 26, 2005, at 15:17, Fabian Cenedese wrote:
>
>>>> We have a network with several Win2K computers, accessing a svn repo
>>>> with https on a linux box. The clients use both svn.exe and tsvn.  The
>>>> problem is, that some have English, others have German windows
>>>> systems.
>>>> Now upon 'update' the $date$ keyword will expand sometimes English,
>>>> somtimes German which makes diff'ing a lot harder. Is there a way
>>>> either in svn or tsvn to fix the used language for keywords  
>>>> expansion?
>>>
>>>
>>> In what way is diffing harder? The expanded keyword is not stored in
>>> the repository...
>>
>>
>> No, but diffs between various checkouts will be harder. e.g. someone
>> checks out with German expansion, changes some files and sends
>> me the whole project. If I diff against my English checkout I will  
>> have a
>> lot of changes that aren't really changes but just differently  expanded
>> keywords. I know this case could also be solved with a patch, but it
>> was just an example.
>>
>> I think I even have this problem just on my computer. Is it possible
>> that svn and tsvn behave differently? e.g. one does look at locales
>> and the other not? When I have two checkouts, one updated by
>> svn, the other by tsvn the may be different. But of course while
>> trying to reproduce this now they both give the same: ...German,
>> on an English Win2K with German settings.
>>
>> Anyway, the question remains the same: Is there some way to
>> influence svn regarding keyword expansion? Is it always
>> dependent on the current OS settings? In my case I'd even
>> like to have it fixed to English even if I have German settings.
>
>
> Sending it back to the list since I don't know the answer...
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
Hi,

why don't you college create a patch-file instead of sending you the 
whole project?
The diff shouldn't contain the different dates.

 Stephan


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

Re: Change locale for $date$?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 26, 2005, at 15:17, Fabian Cenedese wrote:

>>> We have a network with several Win2K computers, accessing a svn repo
>>> with https on a linux box. The clients use both svn.exe and tsvn.  
>>> The
>>> problem is, that some have English, others have German windows
>>> systems.
>>> Now upon 'update' the $date$ keyword will expand sometimes English,
>>> somtimes German which makes diff'ing a lot harder. Is there a way
>>> either in svn or tsvn to fix the used language for keywords  
>>> expansion?
>>
>> In what way is diffing harder? The expanded keyword is not stored in
>> the repository...
>
> No, but diffs between various checkouts will be harder. e.g. someone
> checks out with German expansion, changes some files and sends
> me the whole project. If I diff against my English checkout I will  
> have a
> lot of changes that aren't really changes but just differently  
> expanded
> keywords. I know this case could also be solved with a patch, but it
> was just an example.
>
> I think I even have this problem just on my computer. Is it possible
> that svn and tsvn behave differently? e.g. one does look at locales
> and the other not? When I have two checkouts, one updated by
> svn, the other by tsvn the may be different. But of course while
> trying to reproduce this now they both give the same: ...German,
> on an English Win2K with German settings.
>
> Anyway, the question remains the same: Is there some way to
> influence svn regarding keyword expansion? Is it always
> dependent on the current OS settings? In my case I'd even
> like to have it fixed to English even if I have German settings.

Sending it back to the list since I don't know the answer...



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

Re: Change locale for $date$?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 26, 2005, at 13:21, Fabian Cenedese wrote:

> We have a network with several Win2K computers, accessing a svn repo
> with https on a linux box. The clients use both svn.exe and tsvn. The
> problem is, that some have English, others have German windows  
> systems.
> Now upon 'update' the $date$ keyword will expand sometimes English,
> somtimes German which makes diff'ing a lot harder. Is there a way
> either in svn or tsvn to fix the used language for keywords expansion?

In what way is diffing harder? The expanded keyword is not stored in  
the repository...



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