bugGNU gettext - Bugs: bug #45394, xgettext -x should use more...


You are not allowed to post comments on this tracker with your current authentication level.

bug #45394: xgettext -x should use more relaxed rules for msgid validity

Submitter:  None
Submitted:  Wed 24 Jun 2015 03:59:20 PM UTC
Category:  Programmer tools Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Thu 25 Jun 2015 03:07:54 AM UTC, comment #1: 

Thanks for the suggestion, that sounds plausible.

By the way, I'm a bit surprised that the second example ("blabla\004blabla") is extracted even without -a.  Maybe we should add some check in the PO writer.

Daiki Ueno <ueno>
Group administrator
Wed 24 Jun 2015 03:59:20 PM UTC, original submission:  

When the file with msgids to be excluded using the -x option contains problematic msgids, xgettext fails.
This is a problem when the -a option is used, as -a causes things like
msgid ""
msgid "blabla\004blabla"
in the output, which I try to remove using the -x, as in
xgettext -a some.c -x some.xcl

In my opinion either -x should accept strings that do not follow all the rules, or -a shouldn't output such msgids.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by ueno (Posted a comment)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone Programmer tools

    Back to the top

    Powered by Savane 3.12