[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gettext] Re: gettext 0.10 (and 0.10.35) problem with trigraphs in cat-i
From: |
Bruno Haible |
Subject: |
[gettext] Re: gettext 0.10 (and 0.10.35) problem with trigraphs in cat-id-tbl.c |
Date: |
Fri, 27 Apr 2001 13:52:03 +0200 (MET DST) |
Paul Eggert wrote on 1998-10-20:
> I noticed this problem with GNU texinfo 3.12. The source file line
>
> fprintf (f, _("Usually FILE... is `foo.??` for a document
> `foo.texi`."));
>
> in texinfo-3.12/util/texindex.c generates the following line in
> texinfo-3.12/po/texinfo.pot:
>
> msgid "Usually FILE... is `foo.??` for a document `foo.texi`."
>
> So far, so good: .pot files shouldn`t have to worry about trigraphs.
> But the problem occurs when this diagnostic is converted to
> texinfo-3.12/po/cat-id-tbl.c:
>
> {"Usually FILE... is `foo.??` for a document `foo.texi`.", 357},
>
> and this line is misinterpreted by C compilers that obey trigraphs,
> because ??` is a trigraph.
There wasn't really a problem here, because the original string
with trigraph appeared in the source. Only when the original source
had been "`foo.?" "?` for a document `foo.texi`."
there were a bug in gettext.
The patch has been applied, but catgets support has now been removed
from gettext-0.10.37 anyway.
Bruno
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gettext] Re: gettext 0.10 (and 0.10.35) problem with trigraphs in cat-id-tbl.c,
Bruno Haible <=