Hi,
Am Samstag, den 09.03.2013, 11:52 -0400 schrieb Joey Hess:
Joachim Breitner wrote:
regex-compat is but a thin layour around regex-posix, which states
Note that the posix library works with single byte characters,
and does not understand Unicode. If you need Unicode
Joachim Breitner wrote:
I can reproduce it from within ghc’s address space using gdb:
(gdb) call malloc(32)
$7 = 64943120
(gdb) call regcomp(64943120, ., 0)
$8 = 0
(gdb) call regexec(64943120,\242,0,0,0)
$9 = 1
(gdb) call regexec(64943120,only_ascii,0,0,0)
$10 = 0
And even from gdb
Hi Joey,
Am Freitag, den 08.03.2013, 21:43 -0400 schrieb Joey Hess:
Package: libghc-regex-compat-dev
Version: 0.95.1-2+b1
Severity: normal
Prelude Text.Regex matchRegex (mkRegex $ ^.*$) o
Just []
Prelude Text.Regex let s = ò
Prelude Text.Regex s
\242
Prelude Text.Regex matchRegex
Joachim Breitner wrote:
regex-compat is but a thin layour around regex-posix, which states
Note that the posix library works with single byte characters,
and does not understand Unicode. If you need Unicode support you
will have to use a different backend.¹
Right.
4 matches
Mail list logo