charset: fix portability for unsigned charsmaster
commit67b8ca70fabfe50513502f866358d2465bd30e6a
authorMax Kellermann <max@duempel.org>
Sun, 11 Jan 2009 16:24:15 +0000 (11 17:24 +0100)
committerMax Kellermann <max@duempel.org>
Sun, 11 Jan 2009 16:24:15 +0000 (11 17:24 +0100)
treef6b9ddf30159a5c6b372716ad575799e61ab3ef0
parent73c166a0299a337b2d40bbbb1caa6d4513da10cb
charset: fix portability for unsigned chars

On some platforms, char is unsigned, and the "non_ascii" check "ch <
0" does not work.  Fix that by checking if the highest bit is set.
src/charset.cpp