[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)
Abhina Sree via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 9 12:38:48 PDT 2024
================
@@ -326,7 +326,7 @@ ErrorOr<std::unique_ptr<File>>
RealFileSystem::openFileForRead(const Twine &Name) {
SmallString<256> RealName, Storage;
Expected<file_t> FDOrErr = sys::fs::openNativeFileForRead(
- adjustPath(Name, Storage), sys::fs::OF_None, &RealName);
+ adjustPath(Name, Storage), sys::fs::OF_Text, &RealName);
----------------
abhina-sree wrote:
I have created a separate PR https://github.com/llvm/llvm-project/pull/107906 to propagate an IsText flag to these functions which on z/OS will query the file tag to determine whether to open the file as text or binary.
https://github.com/llvm/llvm-project/pull/98652
More information about the cfe-commits
mailing list