(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
This commit is contained in:
4
string.c
4
string.c
@@ -208,7 +208,7 @@ size_t Utf8Decode(WChar *c, const char *s)
|
||||
}
|
||||
}
|
||||
|
||||
//DEBUG(misc, 1) ("Invalid UTF-8 sequence");
|
||||
//DEBUG(misc, 1, "[utf8] invalid UTF-8 sequence");
|
||||
*c = '?';
|
||||
return 1;
|
||||
}
|
||||
@@ -241,7 +241,7 @@ size_t Utf8Encode(char *buf, WChar c)
|
||||
return 4;
|
||||
}
|
||||
|
||||
//DEBUG(misc, 1) ("Can't UTF-8 encode value 0x%X", c);
|
||||
//DEBUG(misc, 1, "[utf8] can't UTF-8 encode value 0x%X", c);
|
||||
*buf = '?';
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user