[all-commits] [llvm/llvm-project] 1527a5: [SystemZ][z/OS] Add the functions needed for handl...

Abhina Sree via All-commits all-commits at lists.llvm.org
Mon May 3 05:52:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1527a5e4b4834e65678f9c30f786a2f4c17932bf
      https://github.com/llvm/llvm-project/commit/1527a5e4b4834e65678f9c30f786a2f4c17932bf
  Author: Abhina Sreeskantharajan <Abhina.Sreeskantharajan at ibm.com>
  Date:   2021-05-03 (Mon, 03 May 2021)

  Changed paths:
    A llvm/include/llvm/Support/AutoConvert.h
    A llvm/lib/Support/AutoConvert.cpp
    M llvm/lib/Support/CMakeLists.txt
    M llvm/lib/Support/MemoryBuffer.cpp
    M llvm/lib/Support/Unix/Path.inc
    A llvm/test/Support/encoding.ll

  Log Message:
  -----------
  [SystemZ][z/OS] Add the functions needed for handling EBCDIC I/O

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

Reviewed By: anirudhp

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




More information about the All-commits mailing list