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

Re: Parseable output: --xml option for more commands

From: Travis P <svn_at_castle.fastmail.fm>
Date: 2005-01-14 20:04:28 CET

On Jan 14, 2005, at 9:35 AM, Julian Foad wrote:

> Philip Martin wrote:
>> Do you need an encoding/escaping mechanism?
>>> ~/src/subversion> svn blame ~/tmp/sandbox/t --xml -v -r40:HEAD
>>> <?xml version="1.0" encoding="utf-8"?>
>> Does that make sense if the file contents are not UTF-8?
>
> Hmm. Tricky.

Related to that tricky situation -- various files on which blame is run
could have different encodings. I'd like to suggest you use functions
that you already have to transfer any encoding into UTF-8, but that
only works when you know the encoding of the file content and
Subversion does not have that information about file content, IIRC.
(And what is the receiving program to do? Does it want the original
content in whatever encoding was used, or would it prefer that
Subversion normalize the data into a single encoding?)

-Travis

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 14 20:08:13 2005

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.