bugGNU gettext - Bugs: bug #37857, libiconv allows encoding...

 
 

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

bug #37857: libiconv allows encoding characters above U+10FFFF in UTF-8

Submitter:  Vlad R <vladr>
Submitted:  Mon 03 Dec 2012 08:14:02 PM UTC
   
 
Category:  Other Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Fri 18 Nov 2016 06:38:42 PM UTC, comment #1: 

This bug report belongs to libiconv, not to GNU gettext. => Marking it as 'Invalid'.

The corresponding bug in libiconv has now been fixed: https://savannah.gnu.org/bugs/?39238

Bruno Haible <haible>
Group administrator
Mon 03 Dec 2012 08:14:02 PM UTC, original submission:  

In lib/utf-8.h we imply adherence to RFC 3629, but RFC 3629 explicitly restricts the range of characters to 0000-10FFFF (the UTF-16 accessible range.) In this respect, lib/utf-8.h follows RFC 2279.

As a result, such non-RFC 3629 sequences (in excess of U+10ffff) are deemed "valid" by libiconv (`printf '\xf4\x90\x80\x80' | iconv -f utf8 -t utf8` succeeds) but are not convertible to any other encoding (including utf32: `printf '\xf4\x90\x80\x80' | iconv -f utf8 -t utf32` fails.)

Sequences deemed valid by libiconv are also not interoperable with misc. XML parsers (e.g. Java-based.)

This is similar to the glibc bug 2373.

Vlad R <vladr>

 

(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 (Posted a comment)
  • -email is unavailable- added by vladr (Submitted the item)
  • -email is unavailable- added by vladr
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone Other
    2016-11-18 haible StatusNone Invalid
        Assigned toNone haible
        Open/ClosedOpen Closed
    2012-12-03 vladr Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code