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

Re: Control characters in log message cause failure

From: <kfogel_at_collab.net>
Date: 2004-12-01 23:18:35 CET

Mark Benedetto King <mbk@lowlatency.com> writes:
> On Wed, Dec 01, 2004 at 02:08:34PM -0600, kfogel@collab.net wrote:
> > So my pseudo-code from before should really look like this:
> >
> > /* sending a log msg from server to client */
> >
> > if (is_valid_utf8 (msg)) {
> > if (svn_xml_is_xml_safe (msg)) {
> > send_message (escape_xml (msg));
> > }
> > else {
> > send_message (base64_escape (msg));
> > }
> > }
> > else {
> > send_message (fuzzy_escape (msg));
> > }
>
> What does the receiver do when it receives the message? How does it know
> which escaping mechanism to invert?

It's pseudo-code, how should I know? :-)

Seriously, I've hand-waved on that detail. I was assuming could add
an encoding attribute (I think we do that already).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 1 23:25:14 2004

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.