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

Re: [PROPOSAL] Drop XML from .svn/entries

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2006-04-18 18:05:31 CEST

Vincent Lefevre writes:
> On 2006-04-17 23:25:56 +0200, Peter N. Lundblad wrote:
> > Greg Hudson writes:
> > > What if a field consists of just "\f"?
> >
> > Then it will be escaped like \x0c. All control characters are escaped
> > and likewise \.
>
> Do you mean that fields may contain control characters?
> Then how did you do that with XML? For instance,
>
> <?xml version="1.0"?>
> <test>&#12;</test>

Yes, that's not wellformed XML 1.0, so we didn't allow control characters until
now, and we don't now either, since the things that could possibly
contain such beasts would be filenames and lock comments. None of
these may contain control characters today, among other things, for
compatibility with DAV and because we felt it wasn't worth the
complexity. But I don't want to impose XML's limitations on this file
format, so everything except NULs is allowed.

> Also, couldn't such control characters be munged by a text editor?
>

If an editor munges, \x0c in a file, then stop using that editor. I
choose to escape all control characters to avoid this and for
simplicity. Oh, and if your editor munges newline or form feed
(unescaped), then don't edit the entries file by that editor either.
Same if your editor inserts an UTF-8 BOM at the beginning of the file
or converts space to tabs or whatever. The entries file is made
read-only for a reason:-)

Best,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 18 18:06:08 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.