#include "tinygettext.hpp"
#include "log.hpp"
#include "physfs/physfs_stream.hpp"
-#include "log.hpp"
#include "findlocale.hpp"
//#define TRANSLATION_DEBUG
char c = ' ';
while(in.good() && !in.eof()) {
- while(isspace(c) && !in.eof())
+ while(isspace(static_cast<unsigned char>(c)) && !in.eof())
in.get(c);
if(c == '#') { // skip comments
}
std::string alias;
- while(!isspace(c) && !in.eof()) {
+ while(!isspace(static_cast<unsigned char>(c)) && !in.eof()) {
alias += c;
in.get(c);
}
- while(isspace(c) && !in.eof())
+ while(isspace(static_cast<unsigned char>(c)) && !in.eof())
in.get(c);
std::string language;
- while(!isspace(c) && !in.eof()) {
+ while(!isspace(static_cast<unsigned char>(c)) && !in.eof()) {
language += c;
in.get(c);
}
do { // Read keyword
token.keyword += c;
- } while((c = getchar(in)) != EOF && !isspace(c));
+ } while((c = getchar(in)) != EOF && !isspace(static_cast<unsigned char>(c)));
in.unget();
state = READ_CONTENT;
// Found start of content
state = READ_CONTENT_IN_STRING;
break;
- } else if (isspace(c)) {
+ } else if (isspace(static_cast<unsigned char>(c))) {
// skip
} else { // Read something that may be a keyword
in.unget();