Fixed latin1 to UTF-8 conversion (sign conversion was broken).
This commit is contained in:
parent
04b6388b68
commit
5323b6a532
|
@ -308,7 +308,7 @@ static void utf8fromcodepoint(PHYSFS_uint32 cp, char **_dst, PHYSFS_uint64 *_len
|
||||||
len--; \
|
len--; \
|
||||||
while (len) \
|
while (len) \
|
||||||
{ \
|
{ \
|
||||||
const PHYSFS_uint32 cp = (PHYSFS_uint32) *(src++); \
|
const PHYSFS_uint32 cp = (PHYSFS_uint32) ((typ) (*(src++))); \
|
||||||
if (cp == 0) break; \
|
if (cp == 0) break; \
|
||||||
utf8fromcodepoint(cp, &dst, &len); \
|
utf8fromcodepoint(cp, &dst, &len); \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in New Issue