This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Allow OPEN(n,ENCODING=) to change the encoding
ClosedPublic

Authored by klausler on Jul 3 2023, 10:31 AM.

Details

Summary

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.)

Diff Detail

Event Timeline

klausler created this revision.Jul 3 2023, 10:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 3 2023, 10:31 AM
klausler requested review of this revision.Jul 3 2023, 10:31 AM
vdonaldson accepted this revision.Jul 3 2023, 11:01 AM
This revision is now accepted and ready to land.Jul 3 2023, 11:01 AM
This revision was landed with ongoing or failed builds.Jul 3 2023, 11:33 AM
This revision was automatically updated to reflect the committed changes.