On 01.03.2011 21:07, Peter Kümmel wrote:
On 01.03.2011 12:40, Joost Verburg wrote:
Hi all,

On Windows with current trunk I'm getting a crash when clicking the Search
button in the Citation dialog. Not sure what's going on.
GuiApplication::notify reports a "regular expression error" which is strange
because the error occurs in the mouse event handling.

Any ideas?

GuiCitation.cpp
static docstring escape_special_chars(docstring const&  expr)
{
        // Search for all chars '.|*?+(){}[^$]\'
        // Note that '[' and '\' must be escaped.
        // This is a limitation of lyx::regex, but all other chars in BREs
        // are assumed literal.
        static const lyx::regex reg("[].|*?+(){}^$\\[\\\\]");


It doesn't like the regex reg("[].|*?+(){}^$\\[\\\\]");

What could be wrong with this regex?


Fixed by using boost's regex.

It doesn't crash when the regex is not used in ECMAScrip mode.
Tried to replace it:
http://www.lyx.org/trac/changeset/37832/lyx-devel/trunk

But we are on the saver side if we use the boost code.

Peter

Reply via email to