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

Re: fuzzy_escape function in libsvn_subr is not reversible

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-11-08 00:25:08 CET

"Jendro, Carsten (SAZ-DE)" <CJendro@saz.net> writes:
> I have a problem with svnlook when I use it to print an utf8 log
> message in the console.
>
> Under windows it is not possible to set the output mode to utf8, so
> all text output will be escaped with the fuzzy_escape function located
> in libsvn_subr / utf.c
>
> This pocess is not reversible, because every char >= 128 and 0 will be
> converted to a replacement in a format like "?\000". But the starting
> char of the replacement, the question mark (?) schould be replaced too
> to make it reversible.

I don't understand how this is reversible.

In general, any file or stream might contain a string like "?\000"
(for example, a file containing the email you just sent!).

Escaping the "?" does no good, because anything might contain the
escape sequence too (for example, a mail explaining the escape
sequence!).

In the absence of a well-defined character encoding, reversibility is
not achievable. But that is the situation we are in, when we use
fuzzy_escape.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 8 00:25:27 2007

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.