Project

General

Profile

Bug #13412

towlower(0x038A) is broken

Added by Bruno Haible about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

towlower (0x038A) returns 0x03B0. According to the Unicode mapping tables, it should return 0x03AF instead.

Found in OpenIndiana Hipster 20171031.

How to reproduce:
$ gcc -Wall foo.c
$ ./a.out

Expected result:
towlower (0x038A) = 0x03AF
towupper (0x038A) = 0x038A
towlower (0x03AF) = 0x03AF
towupper (0x03AF) = 0x038A
towlower (0x03B0) = 0x03B0
towupper (0x03B0) = 0x03B0

Actual result:
towlower (0x038A) = 0x03B0
towupper (0x038A) = 0x038A
towlower (0x03AF) = 0x03AF
towupper (0x03AF) = 0x038A
towlower (0x03B0) = 0x03B0
towupper (0x03B0) = 0x03B0


Files

foo.c (607 Bytes) foo.c Test case Bruno Haible, 2020-12-30 03:25 PM
check-towlower.c (850 Bytes) check-towlower.c Andreas Wacknitz, 2020-12-30 04:08 PM

Also available in: Atom PDF