[flang-commits] [PATCH] D122038: [flang] Initial UTF-8 support in runtime I/O

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Mar 18 13:48:02 PDT 2022


klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added subscribers: jdoerfert, mgorny.
Herald added a project: All.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D122038

Files:
  flang/include/flang/Runtime/iostat.h
  flang/runtime/CMakeLists.txt
  flang/runtime/descriptor-io.h
  flang/runtime/edit-input.cpp
  flang/runtime/edit-input.h
  flang/runtime/edit-output.cpp
  flang/runtime/edit-output.h
  flang/runtime/environment.cpp
  flang/runtime/environment.h
  flang/runtime/internal-unit.cpp
  flang/runtime/internal-unit.h
  flang/runtime/io-stmt.cpp
  flang/runtime/io-stmt.h
  flang/runtime/iostat.cpp
  flang/runtime/namelist.cpp
  flang/runtime/unit.cpp
  flang/runtime/unit.h
  flang/runtime/utf.cpp
  flang/runtime/utf.h
  flang/unittests/Runtime/ExternalIOTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122038.416601.patch
Type: text/x-patch
Size: 57817 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220318/65dd9151/attachment-0001.bin>


More information about the flang-commits mailing list