bug-gnulib
[Top][All Lists]
Advanced

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

Re: quotearg improvements [was: filenames in error messages]


From: Eric Blake
Subject: Re: quotearg improvements [was: filenames in error messages]
Date: Wed, 13 Feb 2008 21:56:00 -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/13/2008 7:18 PM:
| In a nutshell, if the source file name contains : or \ or " or any
| control character, we enclose it in quotes and escape as needed.
| Otherwise, no quotes needed.  Wdyt?

If my QA_SPLIT_TRIGRAPHS patch is added, then the c_maybe_quoting_style in
combination with quotearg_colon (or a one-time
set_char_quoting(NULL,':',1)') does just that.  It sounds easy to parse as
well - if the first character is ", search for the first unquoted " while
processing \ escapes; otherwise, search for the first :.

- --
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

iD8DBQFHs8nf84KuGfSFAYARAqW5AJ9O+1snz9/muEu+aDZeYhc4b+11TwCgiDpr
gX/Ciwm5OCUSoyJptkS4kN0=
=NuQD
-----END PGP SIGNATURE-----




reply via email to

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