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></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