public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42693] Missing gcc-internal-format on messages from gfc_arith_error
       [not found] <bug-42693-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-24 11:11 ` dominiq at lps dot ens.fr
  2012-02-16 14:36 ` burnus at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-01-24 11:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42693

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-01-24
                 CC|                            |burnus@net-b.de
     Ever Confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-01-24 10:55:06 UTC ---
> Confirm. One possibility would be to modify ...

Tobias,

Is it that simple?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42693] Missing gcc-internal-format on messages from gfc_arith_error
       [not found] <bug-42693-4@http.gcc.gnu.org/bugzilla/>
  2012-01-24 11:11 ` [Bug fortran/42693] Missing gcc-internal-format on messages from gfc_arith_error dominiq at lps dot ens.fr
@ 2012-02-16 14:36 ` burnus at gcc dot gnu.org
  2020-06-01 13:31 ` markeggleston at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-02-16 14:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42693

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org
             Blocks|                            |52274
         Depends on|52274                       |

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-02-16 14:05:17 UTC ---
(In reply to comment #1)
> a simple hack would be to use:
> +      /* xgettext:gcc-internal-format */

I think the best would be to mark those lines with "%L" via G_() instead of _.
There are plenty such lines. (Cf. also PR 52279)


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42693] Missing gcc-internal-format on messages from gfc_arith_error
       [not found] <bug-42693-4@http.gcc.gnu.org/bugzilla/>
  2012-01-24 11:11 ` [Bug fortran/42693] Missing gcc-internal-format on messages from gfc_arith_error dominiq at lps dot ens.fr
  2012-02-16 14:36 ` burnus at gcc dot gnu.org
@ 2020-06-01 13:31 ` markeggleston at gcc dot gnu.org
  2020-06-06 12:55 ` goeran at uddeborg dot se
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: markeggleston at gcc dot gnu.org @ 2020-06-01 13:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42693

markeggleston at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markeggleston at gcc dot gnu.org

--- Comment #4 from markeggleston at gcc dot gnu.org ---
I note from the current code all the strings in gfc_arith_error are enclosed in
_(). Does this mean that this is fixed?

I don't know how to test for message translation so can not confirm.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42693] Missing gcc-internal-format on messages from gfc_arith_error
       [not found] <bug-42693-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2020-06-01 13:31 ` markeggleston at gcc dot gnu.org
@ 2020-06-06 12:55 ` goeran at uddeborg dot se
  2020-06-22 10:47 ` cvs-commit at gcc dot gnu.org
  2020-06-23  6:29 ` markeggleston at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: goeran at uddeborg dot se @ 2020-06-06 12:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42693

--- Comment #5 from Göran Uddeborg <goeran at uddeborg dot se> ---
(In reply to markeggleston from comment #4)
> Does this mean that this is fixed?

I don't think so.  The "_" define typically marks the string for translation,
but it doesn't add the information this is a format string using
"gcc-internal-format" rather than regular printf() style formatting.  According
to comment 3, that can be achieved by using the define "G_" rather than plain
"_" for those strings using "%L" or any other GCC specific formatting
directives..

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42693] Missing gcc-internal-format on messages from gfc_arith_error
       [not found] <bug-42693-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2020-06-06 12:55 ` goeran at uddeborg dot se
@ 2020-06-22 10:47 ` cvs-commit at gcc dot gnu.org
  2020-06-23  6:29 ` markeggleston at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-22 10:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42693

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Mark Eggleston
<markeggleston@gcc.gnu.org>:

https://gcc.gnu.org/g:d57bf2315e024ada3393ad967e8f632121383c9c

commit r11-1583-gd57bf2315e024ada3393ad967e8f632121383c9c
Author: Mark Eggleston <markeggleston@gcc.gnu.org>
Date:   Wed Jun 10 11:41:56 2020 +0100

    Fortran  : Missing gcc-internal-format PR42693

    Messages in gfc_arith_error contain gcc internal format specifiers
    which should be enclosed in G_() in order to be correctly translated.

    2020-06-22  Mark Eggleston  <markeggleston@gcc.gnu.org>

    gcc/fortran/

            PR fortran/42693
            * arith.c (gfc_arith_error): Enclose strings in G_() instead
            of _().

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42693] Missing gcc-internal-format on messages from gfc_arith_error
       [not found] <bug-42693-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2020-06-22 10:47 ` cvs-commit at gcc dot gnu.org
@ 2020-06-23  6:29 ` markeggleston at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: markeggleston at gcc dot gnu.org @ 2020-06-23  6:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42693

markeggleston at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #7 from markeggleston at gcc dot gnu.org ---
Committed to master.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42693] Missing gcc-internal-format on messages from gfc_arith_error
  2010-01-11 21:00 [Bug fortran/42693] New: " goeran at uddeborg dot se
@ 2010-01-11 22:29 ` burnus at gcc dot gnu dot org
  0 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-01-11 22:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2010-01-11 22:29 -------
Confirm. One possibility would be to modify
  gcc/po/exgettext
to recognize %L -- while a simple hack would be to use:

--- arith.c     (Revision 155812)
+++ arith.c
@@ -91,6 +91,7 @@
   switch (code)
     {
     case ARITH_OK:
+      /* xgettext:gcc-internal-format */
       p = _("Arithmetic OK at %L");
       break;
     case ARITH_OVERFLOW:

etc.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42693


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-06-23  6:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-42693-4@http.gcc.gnu.org/bugzilla/>
2012-01-24 11:11 ` [Bug fortran/42693] Missing gcc-internal-format on messages from gfc_arith_error dominiq at lps dot ens.fr
2012-02-16 14:36 ` burnus at gcc dot gnu.org
2020-06-01 13:31 ` markeggleston at gcc dot gnu.org
2020-06-06 12:55 ` goeran at uddeborg dot se
2020-06-22 10:47 ` cvs-commit at gcc dot gnu.org
2020-06-23  6:29 ` markeggleston at gcc dot gnu.org
2010-01-11 21:00 [Bug fortran/42693] New: " goeran at uddeborg dot se
2010-01-11 22:29 ` [Bug fortran/42693] " burnus at gcc dot gnu dot org

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).