[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #66313] msgfmt fails to parse glib's format specifiers
From: |
Guido |
Subject: |
[bug #66313] msgfmt fails to parse glib's format specifiers |
Date: |
Wed, 9 Oct 2024 04:02:19 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?66313>
Summary: msgfmt fails to parse glib's format specifiers
Group: GNU gettext
Submitter: agx
Submitted: Wed 09 Oct 2024 08:02:15 AM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 09 Oct 2024 08:02:15 AM UTC By: Guido <agx>
Strings with like
```
g_strdup_printf (_("%"G_GINT64_FORMAT" minutes ago"), minutes);
```
are quite common in glib based programs to cater for the differences in
integer sizes. However running msgfmt on those strings gives:
> src/foo.c:103: warning: Although being used in a format string position, the
msgid is not a valid C format string. Reason: The string ends in the middle of
a directive.
Would be great if msgfmt could parse this.
This is gettext 0.25.2
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66313>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [bug #66313] msgfmt fails to parse glib's format specifiers,
Guido <=
- [bug #66313] msgfmt fails to parse glib's format specifiers, Bruno Haible, 2024/10/09
- [bug #66313] msgfmt fails to parse glib's format specifiers, Guido, 2024/10/09
- [bug #66313] msgfmt fails to parse glib's format specifiers, Bruno Haible, 2024/10/09
- [bug #66313] msgfmt fails to parse glib's format specifiers, Guido, 2024/10/09
- [bug #66313] msgfmt fails to parse glib's format specifiers, Bruno Haible, 2024/10/13