bug-gnulib
[Top][All Lists]
Advanced

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

Re: filenames in error messages


From: Eric Blake
Subject: Re: filenames in error messages
Date: Fri, 15 Feb 2008 07:08:38 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Karl Berry on 2/14/2008 4:48 PM:
|     | "C escapes" means to use the backslash character as escape character.
|     | This is a particularly bad choice, because - as you know - on some
systems,
|     | backslahes are used as directory separator.
|
| That hardly seems an insurmountable objection to me, since
| (1) many such paths will not have any special characters (such as : or a
| control character), and therefore will not be quoted, and therefore the
| \'s will just appear as-is, and

Quotearg does not now do this (if \ is present at all, the c-maybe style
adds "" and quotes it), but I can easily add that behavior (if \ appears,
but no other troublesome characters, then "" is not added and \ appears as
is, rather than doubled).  Thanks for the idea.

Meanwhile, whether or not the decision is made to go with \ vs. % quoting,
I think it shouldn't be too hard to make the quotearg module support both
styles, so I'll tackle an implementation of % quoting next.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHtZzm84KuGfSFAYARAra2AJ4gC8O/lfUD9saJ5TfyJlbKXrgD1gCeIm2f
BguYIXf2Edw5QUrotAbuOBI=
=Bosd
-----END PGP SIGNATURE-----




reply via email to

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