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: Eric Blake
Subject: Re: special characters in filenames in error messages
Date: Sat, 29 Nov 2008 09:00:16 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666

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

According to Karl Berry on 11/28/2008 11:59 AM:
> After some additional discussion with the people who brought up the
> issue in the first place (cc'd), who wanted to use url's in GNU-style
> error messages, my new proposal is to use octal escapes \ooo (and
> nothing else).  Specifically:
> 
> 1) if the first character of the source is a ", the source name extends
>    to the next ".  (Including :'s, for example.)
> 2) within that "...", \ooo is recognized.  For instance, \042=" and \134=\,
>    so this weird filename (5 chars):
> a:"\b
>    would be output in an error message as:
> "a:\042\134b":10:some message
> 
> This should be about as easy to parse as it can be, and it follows rms's
> "one character one specification" rule.

This sounds fine to me; I'll try to make time next week to enhance the
gnulib quotearg module to output this style.

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

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

iEYEARECAAYFAkkxZxAACgkQ84KuGfSFAYDGTgCgkAPPR58/tD8EcU/UKaMMtjGD
MuQAmQGEbnR8EcfbhXkmNfWqTa3E0468
=1u4c
-----END PGP SIGNATURE-----




reply via email to

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