summaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2013-01-28 17:23:02 +0000
committerhallgren <hallgren@chalmers.se>2013-01-28 17:23:02 +0000
commita559e5160841d469827a74bdeca9edce539eab08 (patch)
tree2ba8c0857968c8ff8d9eb727ebdb826dfa5555f8 /src/runtime
parent713e883ad7816f0bb0e3cb7f3cb8fc2a636c805b (diff)
Quick fix to render some parser error messages from UTF-8-encoded source files correctly.
The parser works on raw byte sequences read from source files. If parsing succeeds the raw byte sequences are converted to proper Unicode characters in a later phase. But the parser calls the function buildAnyTree, which can fail and generate error messages containing source code fragments, which might then containing raw byte sequences. To render these error messages correctly, they need to be converted in accordance with the coding flag in the source file. This is now done for UTF-8-encoded source files, but should ideally also be done for other character encodings. (Latin-1-encoded files never suffered from this problem, since raw bytes are proper Unicode characters in this case.)
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions