[libc-commits] [libc] [libc] Accept 't' in the fopen mode and reject unknown characters (PR #236968)
Mike Lothian via libc-commits
libc-commits at lists.llvm.org
Sat Nov 7 00:10:30 PST 2026
FireBurn wrote:
Thanks, both done. `FileMode` now accepts `t` and ignores it on Linux, like `e`, and an unknown character makes the mode invalid wherever it appears, so `r?b` is rejected and a later known character can't undo it. I reworked the tests to cover `t` in each position and unknown characters in the middle and at the end.
https://github.com/llvm/llvm-project/pull/236968
More information about the libc-commits
mailing list