diff options
| author | Zhang Boyang <zhangboyang.id@gmail.com> | 2017-09-09 20:37:43 +0800 |
|---|---|---|
| committer | Zhang Boyang <zhangboyang.id@gmail.com> | 2017-09-09 20:37:43 +0800 |
| commit | a82c11f4b41c8f91034bd1cf426ec01eb811185e (patch) | |
| tree | d65f429966c878b3145d31bd4b02d089df6cc456 /tests/tests2/Makefile | |
| parent | b8fe8fc2105455eb5004be89fa8575aa928a18f3 (diff) | |
| download | tinycc-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/Makefile')
0 files changed, 0 insertions, 0 deletions
