public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Zack Weinberg <zack@codesourcery.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: fortran/5558: Error in POT file
Date: Thu, 31 Jan 2002 15:56:00 -0000	[thread overview]
Message-ID: <20020131235601.8940.qmail@sources.redhat.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1608 bytes --]

The following reply was made to PR fortran/5558; it has been noted by GNATS.

From: Zack Weinberg <zack@codesourcery.com>
To: martin@v.loewis.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: fortran/5558: Error in POT file
Date: Thu, 31 Jan 2002 15:50:45 -0800

 On Thu, Jan 31, 2002 at 09:02:40PM -0000, martin@v.loewis.de wrote:
 
 > There are atleast two messages in the gcc catalog which are marked
 > as c-format, but are not intended to be used with printf. As a
 > result, msgfmt rejects the French translation. The specific examples
 > are
 > 
 > #: f/lex.c:427
 > #, c-format
 > msgid "Hex escape at %0 out of range"
 > msgstr "échappement hexadécimal à %0 hors gamme"
 > 
 > #: f/lex.c:460
 > #, fuzzy, c-format
 > msgid "Escape sequence at %0 out of range for character"
 > msgstr "séquence d'échappement hors gamme pour le type caractère"
 
 You are mistaken.  Those %0's most definitely are substitution
 escapes.  They are not the same as printf substitutions, but they are
 substitutions nonetheless.
 
 Having said that, I can see the problem - it thinks the escape is 
 "%0 o" instead of just "%0".  Your fix is to remove the "#, c-format"
 annotation.
 
 The second translation needs to have "%0" in it somewhere analogous to
 where it appears in the English, or the error messages will not make
 sense in context.
 
 I am attempting to get a more flexible mechanism for format-string
 handling put into gettext, but Bruno so far refuses to even consider
 it.  (Thank you for bringing this case to my attention, it illustrates
 a situation where both the existing choices are wrong.)
 
 zw


             reply	other threads:[~2002-01-31 23:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-31 15:56 Zack Weinberg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-02-04 15:29 pthomas
2002-02-01 16:16 Martin v. Loewis
2002-02-01 15:06 Philipp Thomas
2002-02-01 14:56 Toon Moene
2002-02-01 13:56 Philipp Thomas
2002-02-01 13:26 Toon Moene
2002-02-01  6:16 Philipp Thomas
2002-02-01  6:09 toon
2002-02-01  1:26 Martin v. Loewis
2002-01-31 17:06 Zack Weinberg
2002-01-31 16:36 Martin v. Loewis
2002-01-31 13:06 martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020131235601.8940.qmail@sources.redhat.com \
    --to=zack@codesourcery.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).