bug-bison
[Top][All Lists]
Advanced

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

Re: i18n for yacc backend messages


From: Paul Eggert
Subject: Re: i18n for yacc backend messages
Date: Sat, 16 Apr 2005 01:36:07 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Jan Nieuwenhuizen <address@hidden> writes:

>> I installed this patch instead.  It doesn't require any changes to
>> quotearg (a shared module) so it's better in that respect.
>
> Hmm, this doesn't fix the escaping problem, sorry.

In what sense doesn't it fix it?  For example, it turns this:

%token SPECIAL "\\\'\?\"\a\b\f\n\r\t\v\001\377\x001\x0000ff"

into this:

static const char *const yytname[] =
{
  ...
  "\"\\\\'?\\\"\\a\\b\\f\\n\\r\\t\\v\\001\\377\\001\\377\"",
  ...
};

and if you print that string you'll see this:

"\\'?\"\a\b\f\n\r\t\v\001\377\001\377"

and this is a C representation of an equivalent to the original
string.




reply via email to

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