[all-commits] [llvm/llvm-project] 664c11: [flang] Always encode multi-byte output in UTF-8

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Apr 14 11:14:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 664c111c958c14e3250fe9e82ba16de05fb4772f
      https://github.com/llvm/llvm-project/commit/664c111c958c14e3250fe9e82ba16de05fb4772f
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-04-14 (Thu, 14 Apr 2022)

  Changed paths:
    M flang/runtime/connection.h
    M flang/runtime/edit-output.cpp
    M flang/runtime/io-stmt.cpp

  Log Message:
  -----------
  [flang] Always encode multi-byte output in UTF-8

A recent change to implement UTF-8 encoding should have
made the encoding conditional only for CHARACTER(KIND=1)
to enable UTF-8 output vs. Latin-1 or whatever.  UTF-8 output
of wider CHARACTER kinds should not be conditional (until we choose
to support UCS-16, maybe).  So wider CHARACTER kinds are being
emitted with extra zero bytes; this patch fixes them.

Differential Revision: https://reviews.llvm.org/D123711




More information about the All-commits mailing list