[bugs] [illumos gate - Bug #992] (Resolved) towlower/towupper are broken
illumos bugs
bugs at lists.illumos.org
Thu Jul 14 09:11:57 PDT 2011
Issue #992 has been updated by Gordon Ross.
Status changed from New to Resolved
<pre>
changeset: 13399:a1d28d03839f
tag: tip
user: Yuri Pankov <yuri.pankov at gmail.com>
date: Thu May 12 03:21:34 2011 +0400
description:
992 towlower/towupper are broken
Reviewed by: Garrett D'Amore <garrett at nexenta.com>
Approved by: Gordon Ross <gwr at nexenta.com>
</pre>
----------------------------------------
Bug #992: towlower/towupper are broken
https://www.illumos.org/issues/992
Author: Yuri Pankov
Status: Resolved
Priority: Normal
Assignee: Yuri Pankov
Category: locale - data and messages
Target version:
Difficulty: Medium
Tags: needs-triage
<pre>
$ cat tow-test.c
#include <locale.h>
#include <stdio.h>
#include <wchar.h>
int
main(void) {
wint_t rusP = 0x41f;
wint_t rusp = 0x43f;
setlocale(LC_ALL, "");
printf("towlower: %lc -> %lc\n", rusP, towlower(rusP));
printf("towupper: %lc -> %lc\n", rusp, towupper(rusp));
return (0);
}
Illumos:
$ LC_ALL=en_US.UTF-8 ./tow-test
towlower: П -> П
towupper: п -> п
$ LC_ALL=ru_RU.UTF-8 ./tow-test
towlower: П -> П
towupper: п -> П
Solaris 11:
$ LC_ALL=en_US.UTF-8 ./tow-test
towlower: П -> п
towupper: п -> П
$ LC_ALL=ru_RU.UTF-8 ./tow-test
towlower: П -> п
towupper: п -> П
FreeBSD 8:
$ LC_ALL=en_US.UTF-8 ./tow-test
towlower: П -> п
towupper: п -> П
$ LC_ALL=ru_RU.UTF-8 ./tow-test
towlower: П -> п
towupper: п -> П
</pre>
The letter is cyrillic 'pe' (just as an example, problem isn't limited to it).
I'm not sure if towlower/towupper are actually at fault here or problem is deeper and setting Garrett as assignee as he was working on it.
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account
More information about the bugs
mailing list