[PATCH] D100483: [SystemZ][z/OS] Add the functions needed for handling EBCDIC I/O

Abhina Sree via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 14 07:55:51 PDT 2021


abhina.sreeskantharajan created this revision.
Herald added subscribers: dexonsmith, hiraditya, mgorny.
abhina.sreeskantharajan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch adds the basic functions needed for controlling auto conversion on z/OS.
Auto conversion is enabled on untagged input file to ASCII by making the assumption that all untagged files are EBCDIC encoded. Output files are auto converted to EBCDIC IBM-1047.
This change also enables conversion for stdin/stdout/stderr.

For more information on how fcntl controls codepage https://www.ibm.com/docs/en/zos/2.4.0?topic=descriptions-fcntl-bpx1fct-bpx4fct-control-open-file-descriptors


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100483

Files:
  llvm/include/llvm/Support/AutoConvert.h
  llvm/lib/Support/AutoConvert.cpp
  llvm/lib/Support/CMakeLists.txt
  llvm/lib/Support/MemoryBuffer.cpp
  llvm/lib/Support/Unix/Path.inc
  llvm/test/Support/encoding.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100483.337451.patch
Type: text/x-patch
Size: 10207 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210414/c253f096/attachment.bin>


More information about the llvm-commits mailing list