[SM-Grimoire-Bugs] [Bug 14047] ksorcery fails to cast, typo in kspelllist.cpp

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Mon Oct 22 21:42:13 EDT 2007


http://bugs.sourcemage.org/show_bug.cgi?id=14047





------- Additional Comments From carlosdgtorres at gmail.com  2007-10-22 20:42 -------
\s in BASH is a shorthand for a whitespace. But \s has no meaning in C++. 
exp in kspelllist is a KRegExp object. The member function compile takes a C++ 
character string that contains a regular expression. But in C++ character strings, 
backslashes are interpreted differently. So in order to pass a \s as part of a regular 
expression, you need to have two backslashes, as in \\s.

This is only afaik and it's the only reason I can think of that accounts for that error 
message. Of course, I could be totally wrong, since the other exp.compile calls have 
single backslashes and don't generate errors.

-- 
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the SM-Grimoire-Bugs mailing list