bug-gettext
[Top][All Lists]
Advanced

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

[bug #64192] xgettext doesn't handle strings in preprocessor macros


From: Daniel
Subject: [bug #64192] xgettext doesn't handle strings in preprocessor macros
Date: Sun, 14 May 2023 13:57:41 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?64192>

                 Summary: xgettext doesn't handle strings in preprocessor
macros
                   Group: GNU gettext
               Submitter: pdaniel
               Submitted: Sun 14 May 2023 05:57:39 PM UTC
                Category: Programmer tools
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 14 May 2023 05:57:39 PM UTC By: Daniel <pdaniel>
The end of the
[https://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html#Language-specific-options
5.1.6 Language specific options] chapter says:

> This implementation of xgettext is able to process a few awkward cases, like
strings in preprocessor macros,

I'm not sure if it's a bug, or if I don't quite understand the meaning of
"strings in preprocessor macros" in this case. I tried:


// test.c

#define BAR "bar"

gettext(BAR);
gettext("foo" BAR);


"xgettext --output=- --omit-header test.c" gives:


#: test.c:5
msgid "foo"
msgstr ""


If this is not a bug and some other behavior is implied, it may be worth
clarifying in the documentation.

gettext 0.21.1







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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