Implements UTF-8 encoding and decoding for external units
with OPEN(ENCODING='UTF-8'). This encoding applies to default
CHARACTER values that are not 7-bit ASCII as well as to
the wide CHARACTER kinds 2 and 4. Basic testing is in place
via direct calls to the runtime I/O APIs, but serious checkout
awaits lowering support of the wide CHARACTER kinds.
Details
Details
- Reviewers
jeanPerier - Commits
- rGbafbae238aa1: [flang] Initial UTF-8 support in runtime I/O
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The code looks good to me, but something might be wrong since the added test is failing.
flang/unittests/Runtime/ExternalIOTest.cpp | ||
---|---|---|
844 | This test is failing with the built bots. |
flang/unittests/Runtime/ExternalIOTest.cpp | ||
---|---|---|
844 | Yes, I see; will figure it out. |
Comment Actions
LGTM
flang/runtime/utf.cpp | ||
---|---|---|
14 | You could use // clang-format off and // clang-format on around UTF8FirstByteTable to prevent anyone from destroying the human readable format of this table when running clang-format. |
Comment Actions
Silence messages about clang-format for a table that shouldn't be automatically reformatted.
You could use // clang-format off and // clang-format on around UTF8FirstByteTable to prevent anyone from destroying the human readable format of this table when running clang-format.