[Pkg-haskell-maintainers] Bug#702617: . fails to match certian characters

Joey Hess joeyh at debian.org
Sat Mar 9 01:43:57 UTC 2013


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 (mkRegex $ "^.*$") s
Nothing
Prelude Text.Regex> matchRegex (mkRegex $ ".") s
Nothing

I mentioned this to upstream and he said:

| That looks like it is pushing the unicode text to your system C library for
| matching.  This translation is probably making a multibyte C-string and then
| running a non-Unicode aware C-library call.
| 
| You will need to check your setup.
| 
| It is true there are some bugs in this, but they are in the translating of
| indices, which does not apply here.

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libghc-regex-compat-dev depends on:
ii  ghc [libghc-base-dev-4.5.0.0-c8e71]                          7.4.1-4
ii  libc6                                                        2.13-38
ii  libffi5                                                      3.0.10-3
pn  libghc-array-dev-0.4.0.0-0b32f                               <none>
ii  libghc-regex-base-dev [libghc-regex-base-dev-0.93.2-f7342]   0.93.2-2+b2
ii  libghc-regex-posix-dev [libghc-regex-posix-dev-0.95.1-2f35a  0.95.1-2+b1
ii  libgmp10                                                     2:5.0.5+dfsg-2

libghc-regex-compat-dev recommends no packages.

Versions of packages libghc-regex-compat-dev suggests:
ii  libghc-regex-compat-doc   0.95.1-2
ii  libghc-regex-compat-prof  0.95.1-2+b1

-- no debconf information

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20130308/361683ae/attachment.pgp>


More information about the Pkg-haskell-maintainers mailing list