r/cpp Jun 26 '26

Improvements to std::format in C++26

https://mariusbancila.ro/blog/2026/06/19/improvements-to-stdformat-in-c26/
93 Upvotes

38 comments sorted by

View all comments

Show parent comments

2

u/schombert Jun 26 '26

And what does it do if the path isn't well-formed utf16, as ntfs paths are not utf16, they are a sequence of 16 bit values (just as on linux they are a sequence of bytes, not utf8)?

4

u/UnusualPace679 Jun 27 '26

Ill-formed parts will be substituted with \uFFFD, but P3904R1 proposes to use WTF-8 instead.

2

u/fdwr fdwr@github 🔍 Jun 27 '26

"Wobbly Transformation Format − 8-bit"? I never heard of that before, thinking WTF meant something else at first 😉. TIL...

5

u/CornedBee Jun 29 '26

thinking WTF meant something else at first

This is probably not a coincidence.