Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.
Summary: glibc or perl incorrect locale LC_CTYPE data
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=166478
jakub(a)redhat.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|glibc |perl
AssignedTo|jakub(a)redhat.com |wtogami(a)redhat.com
QAContact|bbrock(a)redhat.com |dkl(a)redhat.com
CC| |fedora-perl-devel-
| |list(a)redhat.com,
| |jakub(a)redhat.com
------- Additional Comments From jakub(a)redhat.com 2005-08-22 12:50 EST -------
I don't think this looks like a glibc or locale bug, given that:
#include <locale.h>
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main (void)
{
setlocale (LC_ALL, "en_US.UTF-8");
printf ("%d\n", (int) iswalpha (L'\xc1'));
printf ("%d\n", (int) iswalpha (L'\x10c'));
regex_t re;
if (regcomp (&re, "\\W", REG_EXTENDED) != 0)
abort ();
regmatch_t rm;
const char *str = "abc\xc3\x81\xc4\x8c ";
if (regexec (&re, str, 1, &rm, 0) != 0)
abort ();
if (rm.rm_so != strlen (str) - 1
|| rm.rm_eo != rm.rm_so + 1)
abort ();
return 0;
}
works.
--
Configure bugmail:
https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.