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

Re: Encoding of .svn/entries?

From: Denis N. Antonioli <denis.antonioli_at_canoo.com>
Date: 2006-08-16 14:43:48 CEST

Hi Peter

On 14 août 06, at 17:28, Peter N. Lundblad wrote:

> Denis N. Antonioli writes:
>> On 14 août 06, at 17:12, Garrett Rooney wrote:
>>
>>> On 8/14/06, Denis N. Antonioli <denis.antonioli@canoo.com> wrote:
>>>> Hi
>>>>
>>>> I've found out that the file .svn/entries is not encoded in utf-8,
>>>> although that is what the xml header says, but in the platform's
>>>> encoding.
>>>> This is at least the case on my system (Mac OS X 10.4).
>>>>
>>>> Is this a known bug?
>>>
>>> Well, it should be utf-8 encoded, but it's kind of a moot point now,
>>> since we're not using xml for the entries file in 1.4.x and newer
>>> versions of svn.
>>>
>> Thank you. Too bad I'm too late ;-)
>>
>
> Not really. If there's an encoding bug, that might not have gone away
> just because we switched the format. We use UTF-8 internally, and
> when the XML was written, the internal encoding was just written to
> the file.
> It is the same now.
>
> Can you describe how to reproduce the problem?

How about the attached setup.sh, a tcsh script?
Save it to a directory <test>, the script will create a local
repository <test>/rep,
check it out to <test>/sandbox and add to it a file with an accent
(café).
At the end, the script dumps the <test>/sandbox/.svn/entries:

00000180 2f 3e 0a 3c 65 6e 74 72 79 0a 20 20 20 63 6f 6d |/
>.<entry. com|
00000190 6d 69 74 74 65 64 2d 72 65 76 3d 22 31 22 0a 20 |mitted-
rev="1". |
000001a0 20 20 6e 61 6d 65 3d 22 63 61 66 c3 a9 22 0a 20 |
name="café". |
000001b0 20 20 74 65 78 74 2d 74 69 6d 65 3d 22 32 30 30 | text-
time="200|

Best
        dna

-- 
If you steal from 1 you are plagarizing
If you steal from 10 you are doing research
If you steal from 100 you are an expert.
   -- B. Delaney

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

  • application/octet-stream attachment: setup.sh
Received on Wed Aug 16 14:44:41 2006

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

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