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

Bug#101897: glibc locales and regexp malfunction



> When certain locales set, the regexp POSIX functions don't work correctly.
> The bug shows, for example, in mutt or libzv2 (and therefore gnome-terminal)
> applications which use regcomp and regexec functions.
> 
> For example with czech locales set (export LANG=czech; export LC_ALL=czech).
> Searching for pattern '[A-Za-z_]' doesn't work - it always stops at first 'c'.
> 
> (i.e. when searching for http://www_a_c_org_cc as 'http://[A-Za-z_]' the match
> is only 'http://www_a_'). 
> 
> Setting locale back to 'C' fixes the problem.
> 
> I'm using Debian GNU/Linux 2.3 (woody), kernel 2.4.3, libc6-2.2.3-5.

This bug should be fixed in glibc 2.3, because regexp function is 
replaced with the locale-aware.  Please check.

Regards,
-- gotom





Reply to: