bugGNU libunistring - Bugs: bug #49721, uc_mirror_char returns surprising...


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

bug #49721: uc_mirror_char returns surprising results

Submitter:  Bruno Haible <haible>
Submitted:  Mon 28 Nov 2016 01:41:51 AM UTC
Category:  unictype Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Sat 24 Feb 2024 04:35:14 PM UTC, comment #4: 

The fix is contained in libunistring 1.2.

Bruno Haible <haible>
Group administrator
Fri 23 Feb 2024 05:53:19 PM UTC, comment #3: 
Bruno Haible <haible>
Group administrator
Fri 23 Feb 2024 02:27:03 PM UTC, comment #2: 
Bruno Haible <haible>
Group administrator
Mon 28 Nov 2016 01:49:31 AM UTC, comment #1: 

Regarding 1):
It's also explained in http://www.unicode.org/reports/tr9/#Mirroring

Bruno Haible <haible>
Group administrator
Mon 28 Nov 2016 01:41:51 AM UTC, original submission:  

Reported at http://lists.gnu.org/archive/html/bug-libunistring/2016-11/msg00004.html

1) The documentation should explain that uc_mirror_char may return true, yet set the character to 0xfffd. This means that the character has the bidi mirror property (i.e. that it should be displayed through a mirrored glyph) but that this mirrored glyph does not exist as a Unicode character; thus a rendering engine needs to synthesize it artificially or pick it from an appropriate font. See section 4.7 of the Unicode standard.

2) The 'mirror_pairs' table in gen-uni-ctype.c should not be hardcoded but rather be read from the BidiMirroring.txt data file.

Bruno Haible <haible>
Group administrator


(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 (Submitted the item)
  • -email is unavailable- added by haible

    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
    2024-02-24 haible StatusFixed Fix Released
    2024-02-23 haible StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2024-02-23 haible StatusConfirmed In Progress
        Assigned toNone haible
    2016-11-28 haible Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-599c.
    Corresponding source code