mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Make charmap-converting a non-UTF8 string non-fatal
This commit is contained in:
@@ -70,7 +70,7 @@ size_t readUTF8Char(uint8_t *dest, char const *src)
|
||||
|
||||
for (;;) {
|
||||
if (decode(&state, &codep, src[i]) == 1)
|
||||
fatalerror("invalid UTF-8 character\n");
|
||||
return 0;
|
||||
|
||||
dest[i] = src[i];
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user