fix regexp matches to refer to chars, not bytes
authorAndy Wingo <wingo@pobox.com>
Tue, 23 Nov 2010 21:39:06 +0000 (22:39 +0100)
committerAndy Wingo <wingo@pobox.com>
Tue, 23 Nov 2010 21:39:20 +0000 (22:39 +0100)
commit644c5165ee449a3beccadeb969e02746954703ee
tree3e2697e3deec07817fe5c5d5d51f648a88d5c012
parent612aa5bee87bf85b908ed26e73d496af6f0d8520
fix regexp matches to refer to chars, not bytes

* libguile/regex-posix.c (fixup_multibyte_match): Fixup the match
  structure to refer to character offsets, not byte offsets. Fixes bug
  31650.

* test-suite/tests/regexp.test: Add a test.
libguile/regex-posix.c
test-suite/tests/regexp.test