[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 11:52:01 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);
----------------
cor3ntin wrote:
I don't think this is always valid, for eg. `#embed` - We should find a way to propagate that somehow
https://github.com/llvm/llvm-project/pull/98652
More information about the llvm-commits
mailing list