aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/76_dollars_in_identifiers.c
diff options
context:
space:
mode:
authorZhang Boyang <zhangboyang.id@gmail.com>2017-09-09 20:37:43 +0800
committerZhang Boyang <zhangboyang.id@gmail.com>2017-09-09 20:37:43 +0800
commita82c11f4b41c8f91034bd1cf426ec01eb811185e (patch)
treed65f429966c878b3145d31bd4b02d089df6cc456 /tests/tests2/76_dollars_in_identifiers.c
parentb8fe8fc2105455eb5004be89fa8575aa928a18f3 (diff)
downloadtinycc-a82c11f4b41c8f91034bd1cf426ec01eb811185e.tar.gz
tinycc-a82c11f4b41c8f91034bd1cf426ec01eb811185e.tar.bz2
Fix wide char handling in wide string literal
This commit fixed the problem that TCC directly cast each byte in wide string literal to wchar_t, which is wrong when wide string literal contains real wide chars. It fixed the problem by assuming input charset is UTF-8, and wchar_t stores wide chars in UTF-16 (Windows) or UTF-32 (others). The UTF-8 decoder is coded according to The Unicode Standard Version 10.
Diffstat (limited to 'tests/tests2/76_dollars_in_identifiers.c')
0 files changed, 0 insertions, 0 deletions