[GHC] #2540: [Text.Regex] incorrect word boundary ("\\b")
substitutions. Bug in regex-compat's subRegex handling of BOL flags.
GHC
trac at galois.com
Mon Aug 25 17:58:36 EDT 2008
#2540: [Text.Regex] incorrect word boundary ("\\b") substitutions. Bug in regex-
compat's subRegex handling of BOL flags.
--------------------------------+-------------------------------------------
Reporter: Eelis- | Owner: ChrisKuklewicz
Type: bug | Status: closed
Priority: normal | Milestone: Not GHC
Component: libraries (other) | Version: 6.8.3
Severity: normal | Resolution: fixed
Keywords: regex regex-compat | Difficulty: Unknown
Testcase: | Architecture: Multiple
Os: Multiple |
--------------------------------+-------------------------------------------
Changes (by ChrisKuklewicz):
* status: assigned => closed
* resolution: => fixed
Comment:
I have uploaded regex-compat 0.92 and regex-posix 0.93.2 to hackage (they
are also in darcs). These contain two changes:
regex-posix's Wrap.hsc defines _POSIX_C_SOURCE to (untested) cause the gnu
systems to stop trying to handle non-posix escapes like \b.
regex-compat's splitRegex and subRegex are changed to use matchAllText and
not to use recursion. This may (untested) create differences in behavior
compared to the old version, including laziness.
Both require the newer regex-base to compile and run, the current version
of which is 0.93.1 at this time.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2540#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list