Skip to Content.
Sympa Menu

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

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 14047] ksorcery fails to cast, typo in kspelllist.cpp
  • Date: 23 Oct 2007 01:42:13 -0000

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.




Archive powered by MHonArc 2.6.24.

Top of Page