mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-28 13:57:48 +00:00
Report garbage chars as their bytes; don't try decoding them as UTF-8
This decoding required high lookahead, and was not even consistently useful (the `garbage_char` test case was not valid UTF-8 and so did not benefit from `reportGarbageChar`). This limits UTF-8 handling to the `STRLEN` and `STRSUB` built-in functions, and to charmap conversion.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
ERROR: invalid-utf-8.asm(6) -> invalid-utf-8.asm::m(4):
|
||||
Unknown character 0xCF
|
||||
Unknown character '\xcf'
|
||||
ERROR: invalid-utf-8.asm(6) -> invalid-utf-8.asm::m(4):
|
||||
Unknown character 0xD3
|
||||
Unknown character '\xd3'
|
||||
error: Assembly aborted (2 errors)!
|
||||
|
||||
Reference in New Issue
Block a user