bug-gettext
[Top][All Lists]
Advanced

[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:37:15 -0400 (EDT)

Follow-up Comment #4, bug #66313 (group gettext):


[comment #1 comment #1:]
> There are two alternative ways to write this:
> 
> 1) A way that is perfectly supported by GNU gettext:

> #include <inttypes.h>
> 
> g_strdup_printf (_("%"PRId64" minutes ago"), minutes); 
> -varbatim-

I didn't spot that in the docs, thanks! Would it make sense to add glibs types
there as well, just because they are so wide spread?


> Documented at
https://www.gnu.org/software/gettext/manual/html_node/Preparing-Strings.html
.
> 
> The PRId64 macro may need a platform-dependent override, as done in Gnulib:
https://www.gnu.org/software/gnulib/manual/html_node/inttypes_002eh.html
> 
> 2) A way that will be supported in the future:
> +verbatim+
> g_strdup_printf (_("%w64d minutes ago"), minutes);


> 
> This is specified by ISO C 23 and will get increasing platform support over
the next years.

Great. Thanks again! 

In case we don't want to add glib types should we close this?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66313>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]