Bug#868654: Combining Unicode Mark-Nonspacing are classified as [:punct:]

2023-12-12 Thread Vincent Lefevre
Control: forwarded -1 https://sourceware.org/bugzilla/show_bug.cgi?id=31149

I've just reported the bug upstream, as nothing has been done since
more than 6 years!

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#868654: Combining Unicode Mark-Nonspacing are classified as [:punct:]

2017-07-17 Thread Santiago R.R.
Source: glibc
Version: 2.24-12
Severity: minor
Control: block 662629 by -1

Hi,

There is an issue on how glibc classifies the Unicode Mark-nonspacing
category, that should be maybe [[:alpha:]] instead of [[:punct:]]. This
was identified by the bug reported to grep:
https://bugs.debian.org/662629

You can test it using the U+0301 acute accent:

 $ echo árbol | grep -o '[[:alpha:]]*'
 a
 rbol

This is also the opinion by grep's upstream about it:

"Surely this is a glibc bug, not a grep bug. Grep is just following the 
character classification of glibc. I can reproduce the problem by 
compiling and running the attached program, which uses only glibc (not 
grep). This program exits with status 1, whereas you want it to exit 
with status 0. So I suggest filing a glibc bug report."

combining.c is attached to this mail.

Cheers,

  -- Santiago