GNU gettext - Bugs: bug #43720, msgfilter aborts with empty msgstr
You are not allowed to post comments on this tracker with your current authentication level.
bug #43720: msgfilter aborts with empty msgstr
Submitter: | Robin McCorkell <xenopathic> | ||
Submitted: | Thu 27 Nov 2014 11:07:32 PM UTC | ||
Category: | Translator tools | Severity: | 3 - Normal |
Item Group: | None | Status: | Fix Released |
Privacy: | Public | Assigned to: | ueno |
Open/Closed: | Closed |
Fri 28 Nov 2014 04:29:54 AM UTC, comment #1: |
Daiki Ueno <ueno> |
Thu 27 Nov 2014 11:07:32 PM UTC, original submission:
When running msgfilter on a .po file that contains an empty msgstr, and the command prints anything, then msgfilter will abort. The abort does not occur however if the msgstr is non-empty, or if the command doesn't output anything.
|
Robin McCorkell <xenopathic> |
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 | Translator tools | |
Assigned to | None | ueno | |||
2014-11-28 | ueno | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2014-11-27 | xenopathic | Attached File | - | Added test.po, #32564 |
Powered by Savane 3.13-4448.
Corresponding source code
Thanks for the report. It seems you hit a corner case. When the read buffer is filled up, msgfilter.c:prepare_read tries to increase the size by 1.5 times larger than the previous size:
However, if the original l->allocated is 1, the size doesn't change.
I've pushed a fix:
http://git.sv.gnu.org/cgit/gettext.git/commit/?id=06e206f5