[Kalzium] [Bug 114817] Compile error on Solaris 8 - parser.cpp uses isblank, which is not available
Thiago Macieira
thiago at kde.org
Sat Oct 22 01:31:54 CEST 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=114817
thiago kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From thiago kde org 2005-10-22 01:31 -------
SVN commit 472788 by thiago:
Fix code compilation on Solaris 8. isblank is not available outside the GNU
C library:
isblank()
checks for a blank character; that is, a space or a tab. This
function is a GNU extension.
Instead, let's rely on QChar, which is always fully Unicode.
To the Kalzium developers: m_str is a QString, so why is m_nextChar an int,
instead of a QChar?
BUG:114817
M +1 -1 parser.cpp
--- branches/KDE/3.5/kdeedu/kalzium/src/parser.cpp #472787:472788
@ -165,7 +165,7 @
int
Parser::skipWhitespace()
{
- while (isblank(m_nextChar))
+ while (QChar(m_nextChar).isSpace())
getNextChar();
return m_nextChar;
More information about the Kalzium
mailing list