Re: special characters in filenames in error messages

2009-03-06 Thread Karl Berry
I sent Bruno's proposal B to rms. He seems to have accepted it in general. I'll report when there's something concrete to say.

Re: special characters in filenames in error messages

2009-03-05 Thread Michael(tm) Smith
Karl, Just pinging you to find out if there's been any progress on this issue in the last few months. The last message that seems to have been posted in this thread was this one from Bruno on Dec. 14: http://lists.gnu.org/archive/html/bug-gnulib/2008-12/msg00127.html -- Michael(tm) Smith http

Re: special characters in filenames in error messages

2008-12-14 Thread Bruno Haible
Karl Berry wrote: > What I don't understand with your proposal is how this magical url > vs. file bit is known. When producing/printing an error message, this information has to come from the program. The program certainly knows whether it has used a function like fopen() or open_url() to access t

Re: special characters in filenames in error messages

2008-12-11 Thread Karl Berry
Bruno, What I don't understand with your proposal is how this magical url vs. file bit is known. For example, if someone runs Henri's validator in Emacs, it seems to me that next-error is going to have heuristically guess whether it is a url to know how to interpret %'s. Anyway, this decision se

Re: special characters in filenames in error messages

2008-12-08 Thread Bruno Haible
Karl Berry wrote: > Therefore, when you deal with an URI, you should use a different > algorithm of presentation within a GNU error message than when you > deal with a filename. > > This seems like it adds complexity both in the description and in > comprehension. The long description

Re: special characters in filenames in error messages

2008-12-08 Thread Karl Berry
Therefore, when you deal with an URI, you should use a different algorithm of presentation within a GNU error message than when you deal with a filename. This seems like it adds complexity both in the description and in comprehension. At least I am having trouble with it -- it seems l

Re: special characters in filenames in error messages

2008-12-06 Thread Bruno Haible
Henri Sivonen wrote: > > So my proposal is: > > > > - For parsing: > > - If the first character is a '"', then the escaped syntax is > > in use. The filename is enclosed in "..."; inside, > > - occurrences of '"' and '%' are escaped as %22 and %25, > > respectively,

Re: special characters in filenames in error messages

2008-12-04 Thread Henri Sivonen
On Dec 3, 2008, at 14:50, Bruno Haible wrote: So my proposal is: - For parsing: - If the first character is a '"', then the escaped syntax is in use. The filename is enclosed in "..."; inside, - occurrences of '"' and '%' are escaped as %22 and %25, respectively,

Re: special characters in filenames in error messages

2008-12-04 Thread Bruno Haible
Hello Karl, > So, barring further comments/suggestion, I'll propose that to rms in the > next couple of days. Thanks. I think newline characters should be escaped as well (for the sake of programs which read line by line). So the updated proposal is: - For parsing: - If the first charac

Re: special characters in filenames in error messages

2008-12-03 Thread Paolo Bonzini
Karl Berry wrote: > > I don't see why \n should be special? > > For the same reason why we should escape :, i.e. to ensure that each > line can be interpreted as FILE:LINE:MESSAGE. > > Obviously we have to escape newline characters. In the original > proposal, they would be escaped a

Re: special characters in filenames in error messages

2008-12-03 Thread Karl Berry
it is *required* only if the filename - contains a ':' or newline, or - starts with a '"'. Is that the intent? Yes. - For parsing: - If the first character is a '"', then the escaped syntax is in use. The filename is enclosed in "..."; inside,

Re: special characters in filenames in error messages

2008-12-03 Thread Bruno Haible
Hello Karl, > 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=\,

Re: special characters in filenames in error messages

2008-12-03 Thread Bruno Haible
Hello Karl, > 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=\,

Re: special characters in filenames in error messages

2008-12-02 Thread Karl Berry
> I don't see why \n should be special? For the same reason why we should escape :, i.e. to ensure that each line can be interpreted as FILE:LINE:MESSAGE. Obviously we have to escape newline characters. In the original proposal, they would be escaped as \012. I thought you were prop

Re: special characters in filenames in error messages

2008-12-01 Thread Paolo Bonzini
Karl Berry wrote: > pb> I think for \n too. > > I don't see why \n should be special? For the same reason why we should escape :, i.e. to ensure that each line can be interpreted as FILE:LINE:MESSAGE. Paolo

Re: special characters in filenames in error messages

2008-11-30 Thread Karl Berry
pb> I think for \n too. I don't see why \n should be special? > - use \a \b \f \n \r \t \v for ASCII 7-8-12-10-13-9-11 > - use \" \\ for " and \ The simplicity and regularity of having one and only one quoting mechanism seems appealing to me. Filenames containing any of these chara

Re: special characters in filenames in error messages

2008-11-30 Thread Ralf Wildenhues
* 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 i

Re: special characters in filenames in error messages

2008-11-30 Thread Paolo Bonzini
> 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

Re: special characters in filenames in error messages

2008-11-29 Thread Karl Berry
This sounds fine to me; I'll try to make time next week to enhance the gnulib quotearg module to output this style. That would be great, but please wait until rms has approved it (if we propose it). I see little point in spending time on it otherwise. karl

Re: special characters in filenames in error messages

2008-11-29 Thread Karl Berry
it would be a good idea for that to correspond to a style constant for the gnulib quotearg module (default_gnu_style for example). Even if that constant has the same value as some other name (blah_octal_quoting_style, whatever) Agreed.

Re: special characters in filenames in error messages

2008-11-29 Thread Eric Blake
-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

Re: special characters in filenames in error messages

2008-11-29 Thread James Youngman
On Fri, Nov 28, 2008 at 6:59 PM, Karl Berry <[EMAIL PROTECTED]> wrote: > Some months ago we discussed a convention for supporting "special" > characters in filenames ("sources") in error messages. Our conclusion > then was to support C-style escapes. I'm all for bringing a measure of consistency

special characters in filenames in error messages

2008-11-28 Thread Karl Berry
Some months ago we discussed a convention for supporting "special" characters in filenames ("sources") in error messages. Our conclusion then was to support C-style escapes. I wrote a patch for standards.texi saying as much and sent it to rms. He rejected it, saying the idea was fine, but that th