[libc-commits] [libc] [libc] Accept 't' in the fopen mode and reject unknown characters (PR #236968)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed Nov 11 14:51:42 PST 2026
================
@@ -65,12 +66,19 @@ class FileMode {
case 'e':
file_mode_ |= static_cast<Mode>(Extension::CLOSE_ON_EXEC);
break;
+ case 't':
+ // Text mode is the default on Linux. On Windows it asks for newline
----------------
michaelrj-google wrote:
this should add a mode flag for `Extension::TEXT` or similar
https://github.com/llvm/llvm-project/pull/236968
More information about the libc-commits
mailing list