bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: special characters in filenames in error messages


From: Ralf Wildenhues
Subject: Re: special characters in filenames in error messages
Date: Sun, 30 Nov 2008 17:52:16 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

* 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

[Prev in Thread] Current Thread [Next in Thread]