[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64921] xgettext marks more strings as c-format in 0.22 than in 0.2
From: |
Bruno Haible |
Subject: |
[bug #64921] xgettext marks more strings as c-format in 0.22 than in 0.21 |
Date: |
Thu, 23 Nov 2023 12:52:57 -0500 (EST) |
Follow-up Comment #1, bug #64921 (project gettext):
I reproduce the issue with a simplified Vala file:
primary_text.set_markup(
"<span size=\"large\" weight=\"bold\">%s</span>".printf(_("Welcome
to Shotwell!")));
$ xgettext -o - foo.vala
It is obviously caused by the 'printf' function call. xgettext treats 'printf'
in Vala like it would in C:
$ xgettext --flag=printf:1:c-format -k_ -o - foo.c
produces a 'c-format' annotation on the string as well (in 0.22 like in older
releases).
> I saw https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2761 as
well for .c files.
This is unrelated. The gettext 0.22 NEWS file has this entry:
"xgettext and msgfmt now recognize the format string directive %b (for binary
integer output, as defined by ISO C 23) in format strings."
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64921>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/