GNU gettext - Bugs: bug #41668, xgettext incorrect parsing of...
You are not allowed to post comments on this tracker with your current authentication level.
bug #41668: xgettext incorrect parsing of python brace format
Submitter: | Kovid Goyal <kovidgoyal> | ||
Submitted: | Sat 22 Feb 2014 01:14:46 PM UTC | ||
Category: | Python | Severity: | 3 - Normal |
Item Group: | None | Status: | Fix Released |
Privacy: | Public | Assigned to: | ueno |
Open/Closed: | Closed |
Jump to the original submission
Wed 30 Apr 2014 04:34:07 AM UTC, comment #7: |
Daiki Ueno <ueno> |
Wed 05 Mar 2014 09:24:28 AM UTC, comment #6: Well,
|
Daiki Ueno <ueno> |
Tue 04 Mar 2014 05:02:24 PM UTC, comment #5: To clarify the "poedit refuses to save a .po file" comment: that's not the case, but it fails to compile into .mo, because msgfmt (even without -c) fails because of this.
|
Vaclav Slavik <vslavik> |
Mon 24 Feb 2014 09:13:34 AM UTC, comment #4: Thanks for the background information. Then I think the imminent problem could be avoided by recognizing "Standard Format Specifiers" in PEP3101 more precisely, to reject format specifiers like "</c>". Let's fix it before the next release. |
Daiki Ueno <ueno> |
Mon 24 Feb 2014 03:22:34 AM UTC, comment #3: It doesn't cause me any hardship personally, since I just regexed the special case in the code that calls xgettext as part of my build process. The reason for the bug report is that poedit refuses to save a .po file generated from this .pot file.
|
Kovid Goyal <kovidgoyal> |
Mon 24 Feb 2014 03:13:07 AM UTC, comment #2: I doubt if we could do much on this. To parse your first example correctly, we will need to recognize .format() call. That is not easy to do with the current scanner. On the second example, it's out of scope to support invalid python expressions.
|
Daiki Ueno <ueno> |
Sat 22 Feb 2014 01:20:19 PM UTC, comment #1: Here is minimal example:
|
Kovid Goyal <kovidgoyal> |
Sat 22 Feb 2014 01:14:46 PM UTC, original submission:
xgettext incorrect marks the following string as using python-brace-format:
|
Kovid Goyal <kovidgoyal> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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.
Follow 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2023-01-04 | haible | Status | Fixed | Fix Released | |
2016-11-27 | haible | Category | None | Python | |
2014-04-30 | ueno | Status | Confirmed | Fixed | |
Open/Closed | Open | Closed | |||
2014-02-24 | ueno | Status | None | Confirmed | |
Assigned to | None | ueno |
Powered by Savane 3.13-3230.
Corresponding source code
So I ended up with this:
http://git.savannah.gnu.org/cgit/gettext.git/commit/?h=maint&id=4dc36d2f6a4a544cce6cd0e9dc45a080139cd9d1