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

Re: svn client scramble my file

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2006-08-22 08:55:48 CEST

On Tuesday 22 August 2006 02:17, Mathieu Malaterre wrote:
> I am having a bizarre problem with both my svn client on
> GNU/Linux(debian) svn on cygwin. When I retrieve a file it replace '
> with â. Is this some kind of dummy configuration I need to setup ?
>
> The file on disk contains:
> printf ("option i with value â%sâ\n", optarg);
>
> whereas from the svn web client:
>
> http://svn.sourceforge.net/viewvc/gdcm/Applications/gdcmrewrite.cxx?a...
> 108 : printf ("option i with value '%s'\n", optarg);

Woa, that's not completely right what you claim there: these single quotes you
used in your mail are not present in your code, instead there are accent
characters present! Depending on the charset you use, these are represented
with a certain byte value in the file and when you use a different charset to
display them you get different results. Try looking at the file with a hex
editor (or the hexdump/hd tool). You will see that under both systems, the
byte value is the same and only the display differs (I guess, didn't try it).
This is the result of the configured characterset and can be changed with the
so-called locale. How to set that depends on the system you are on.

BTW: you can't portably use anything but the basic ASCII charset in C or C++
sources, so using the straight single quotes (like e.g. in your case labels)
should do the job.

regards

Uli

**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************

Diese E-Mail und jede mit dieser E-Mail versandte Datei ist vertraulich und ausschließlich für die Nutzung durch den vorgesehenen Empfänger bestimmt. Sollten Sie nicht der vorgesehene Empfänger dieser E-Mail sein, informieren Sie bitte den Absender. Jeder unbefugte Zugriff oder unbefugte Weiterleitung, die Fertigung einer Kopie oder sonstige in diesem Zusammenhang stehende Handlung ist untersagt.

This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please be so kind to inform the sender. Any other unauthorised access, unauthorised forwarding, copying or other action in this connection at all, is prohibited.
**************************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 22 08:56:49 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.