On Tue, Nov 16, 2010 at 7:56 AM, Stephan Witt <st.w...@gmx.net> wrote: > The attached patch for http://www.lyx.org/trac/ticket/7026 seems to be > correct.
When I grep for "isdigit" I see the following sollution somewhere else in the source: diff --git a/src/support/lstrings.cpp b/src/support/lstrings.cpp index ed2b9f9..2081fd6 100644 --- a/src/support/lstrings.cpp +++ b/src/support/lstrings.cpp @@ -325,7 +325,7 @@ bool hasDigit(docstring const & str) for (; cit != end; ++cit) { if (*cit == ' ') continue; - if (isdigit((*cit))) + if (*cit < 0x80 && isdigit((*cit))) return true; } return false; This will work too I guess. > The only thing: I don't understand why it should crash with isdigit() instead > of iswdigit()... > According to: http://msdn.microsoft.com/en-us/library/fcc4ksh8%28VS.71%29.aspx "When used with a debug CRT library, isdigit will display a CRT assert if passed a parameter that isn't EOF or in the range of 0 through 0xFF." Vincent