[clang] [clang-tools-extra] [lldb] [llvm] [SystemZ][z/OS] Propagate IsText parameter to open text files as text (PR #107906)

Abhina Sree via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 07:13:23 PDT 2024


abhina-sree wrote:

> OpenFlags |= sys::fs::OF_Text;

Thanks, I've made your suggested change and I opened a new PR here https://github.com/llvm/llvm-project/pull/109664. A short explanation for why distinguishing text and binary files on z/OS is important is because the native encoding is not UTF-8, so we need to know whether the file is text in order to convert to a UTF-8 encoding so that it is readable. 

https://github.com/llvm/llvm-project/pull/107906


More information about the llvm-commits mailing list