general2.c:2308:28: warning: logical 'and' of mutually exclusive tests is always false [-Wlogical-op] Source code is if(utf16[2] < 0xdc && utf16[2] > 0xdf) maybe better code: if(utf16[2] < 0xdc || utf16[2] > 0xdf)