bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #64006] *printf() defines break C++ builds (specifically Qt)


From: Bruno Haible
Subject: [bug #64006] *printf() defines break C++ builds (specifically Qt)
Date: Thu, 1 Jun 2023 09:43:57 -0400 (EDT)

Follow-up Comment #2, bug #64006 (project gettext):


> I'm wondering why there *printf() replacements are unconditionally included,
with no way to turn them off?

They are included on platforms that need them, in particular on native
Windows.

The reason is that translators need the freedom to reorder arguments within
format strings, see
https://www.gnu.org/software/gettext/manual/html_node/c_002dformat-Flag.html

If a system's printf implementation does not support this, the output will be
non-intelligible to users.

> we have convenience functions that take format strings in many places

You have to look whether the format string interpreter actually supports the
%1$, %2$, etc. syntax.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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