[all-commits] [llvm/llvm-project] c9b31d: [flang][runtime] Allow OPEN(n, ENCODING=) to change...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jul 3 11:32:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c9b31dae56f155ed08cc855dffe7eae2ea8cd30d
      https://github.com/llvm/llvm-project/commit/c9b31dae56f155ed08cc855dffe7eae2ea8cd30d
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/runtime/io-api.cpp

  Log Message:
  -----------
  [flang][runtime] Allow OPEN(n,ENCODING=) to change the encoding

OPEN statements can be used to change some, but not all, attributes
of units that have already been opened.  The I/O runtime library
wasn't allowing ENCODING= to be changed.  Every other Fortran compiler
permits this usage, and it's safe and useful, so allow it.
(Otherwise there's no good way to ensure that the preconnected
unit 6 is in UTF-8 mode.)

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




More information about the All-commits mailing list