* Paolo Bonzini wrote on Sun, Nov 30, 2008 at 05:09:34PM CET:
> 
> > The \ooo convention could be used for any character, but in an 8-bit
> > clean environment, I believe it is only *required* for " and \.
> 
> I think for \n too.  Also, is this supposed to be machine- or
> human-readable?  If it is human-readable, I think it is better to:
> 
> - use \a \b \f \n \r \t \v for ASCII 7-8-12-10-13-9-11
> - use \" \\ for " and \
> - use \x[0-9a-f][0-9a-f] for ASCII 0-6, 14-31 and 127

And if it is supposed to be machine-readable with some backward
compatiblity property, then you could think about escaping ':', too:
that way, the old program reading your message will get the file name
wrong, but at least it will correctly parse the start of whatever comes
after the colon after the file name.

Just a thought, probably worth less than 2c...

Cheers,
Ralf


Reply via email to