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

Submitted by:  Vlad R <vladr>
Submitted on:  Mon 03 Dec 2012 08:14:02 PM UTC  
Category:  Other Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  Bruno Haible <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>
Project AdministratorIn charge of this item.
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>


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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Sun 27 Nov 2016 01:31:24 AM UTC haible CategoryNone => Other
    Fri 18 Nov 2016 06:38:42 PM UTC haible StatusNone => Invalid
        Assigned toNone => haible
        Open/ClosedOpen => Closed
    Mon 03 Dec 2012 08:14:02 PM UTC vladr Carbon-Copy- => Added -email is unavailable-

    Back to the top

    Powered by Savane 3.3