GNU gettext - Bugs: bug #32505, xgettext on C# file crashes when...
You are not allowed to post comments on this tracker with your current authentication level.
bug #32505: xgettext on C# file crashes when input file contains Unicode literal with surrogates
Submitter: | Petr Kadlec <mormegil> | ||
Submitted: | Wed 16 Feb 2011 04:57:42 PM UTC | ||
Category: | C# | Severity: | 3 - Normal |
Item Group: | None | Status: | Fix Released |
Privacy: | Public | Assigned to: | ueno |
Open/Closed: | Closed |
Mon 01 Dec 2014 07:17:51 AM UTC, comment #3: |
Daiki Ueno <ueno> |
Fri 28 Nov 2014 08:57:09 AM UTC, comment #2: According to ECMA-334 9.4.1, a Unicode code point in the range U+10000 to U+10FFFF is represented using two Unicode surrogate code units. I couldn't find any example in the specification, but a quick web search showed that the following expressions represent the same string:
|
Daiki Ueno <ueno> |
Thu 28 Feb 2013 10:22:14 AM UTC, comment #1: #1 and #3 are implemented currently, but the real problem is #2, because conversion to UTF-8 is done before knowing it is translatable.
|
Miguel Ángel Arruga Vivas <m1gu3l> |
Wed 16 Feb 2011 04:57:42 PM UTC, original submission:
Running xgettext on a C# file which contains a string literal containing a Unicode escape for a surrogate character leads to an abnormal termination (abort()).
Then run:
|
Petr Kadlec <mormegil> |
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 9 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 | C# | |
2014-12-01 | ueno | Status | In Progress | Fixed | |
Open/Closed | Open | Closed | |||
2014-11-28 | ueno | Attached File | - | Added 0001-csharp-Recognize-Unicode-surrogate-character-pair.patch, #32566 | |
Status | Confirmed | In Progress | |||
Assigned to | m1gu3l | ueno | |||
2013-02-28 | m1gu3l | Status | None | Confirmed | |
2013-02-28 | m1gu3l | Assigned to | None | m1gu3l |
Powered by Savane 3.13-4b48.
Corresponding source code
Pushed a simplified patch, using mixed_string_buffer:
http://git.sv.gnu.org/cgit/gettext.git/commit/?id=6aad665c
with a test:
http://git.sv.gnu.org/cgit/gettext.git/commit/?id=0d2b9cd3