Project

General

Profile

Actions

Bug #3154

closed

Nonconforming tolower and toupper with UTF-8 locales

Added by Bernardo Signori about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
2012-09-05
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

With any UTF-8 locale, tolower and toupper return null when passed an argument that is an invalid UTF-8 character. My understanding of the c standard is than any "arguments in the domain" that have no corresponding lowercase (or uppercase) letter should be returned unchanged.


Files

test.c (395 Bytes) test.c test case Bernardo Signori, 2012-09-05 02:06 PM
test2.c (525 Bytes) test2.c better test case Bernardo Signori, 2012-09-05 02:32 PM
Actions

Also available in: Atom PDF