Subject: Re: bug#2435: Bug 2435

From: Chong Yidong <[email-masked]>
Date: Thu, 05 Mar 2009 23:11:31 -0500

Kenichi Handa <[email-masked]> writes:

> We should take care of re_search_2 and re_match_2_internal
> too.
>
> If the problem is only the call of openp in
> load_charset_map_from_file, and building various Lisp object
> is ok, we can change load_charset_map_from_file to open a
> charset map by itself without using openp.

Not using openp would be troublesome.  How about binding
file-name-handler-alist to nil inside load_charset_map_from_file?  That
prevents find-file-name-handler from performing the regexp compilation
and string search.