[Bug 166478] glibc or perl incorrect locale LC_CTYPE data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|glibc                       |perl
         AssignedTo|jakub@xxxxxxxxxx            |wtogami@xxxxxxxxxx
          QAContact|bbrock@xxxxxxxxxx           |dkl@xxxxxxxxxx
                 CC|                            |fedora-perl-devel-
                   |                            |list@xxxxxxxxxx,
                   |                            |jakub@xxxxxxxxxx




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


[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux