[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `regexp-exec' and non-ascii strings
From: |
Andy Wingo |
Subject: |
Re: `regexp-exec' and non-ascii strings |
Date: |
Thu, 17 Mar 2011 18:54:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
On Sun 06 Mar 2011 20:52, Clinton Ebadi <address@hidden> writes:
> While debugging[0] an issue with Bobot++ (poor sneek!) aborting after
> calling scm_regexp_exec on any utf-8 strings I eventually realized
> that... the string was actually single-byte encoded internally. After
> taking that down the wrong path I eventually tested `regexp-exec' with a
> *valid* latin-1 string and that too aborted in `fixup_multibyte_match'.
This was actually due to scm_to_locale_string() not producing a valid
locale string. Having fixed that, I verified that
meta/guile -c '(display (regexp-exec (make-regexp "(.)(.)(.)") (string
(integer->char 200) (integer->char 201) (integer->char 202))))'
no longer triggers the abort.
Thanks for the report,
Andy
--
http://wingolog.org/