[Bug 166478] glibc or perl incorrect locale LC_CTYPE data

bugzilla at redhat.com bugzilla at redhat.com
Mon Aug 22 16:50:25 UTC 2005


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 at redhat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|glibc                       |perl
         AssignedTo|jakub at redhat.com            |wtogami at redhat.com
          QAContact|bbrock at redhat.com           |dkl at redhat.com
                 CC|                            |fedora-perl-devel-
                   |                            |list at redhat.com,
                   |                            |jakub at redhat.com




------- Additional Comments From jakub at 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.




More information about the Fedora-perl-devel-list mailing list