Re:Standardizing WASI: A system interface to run WebAssembly...
by comex on Wednesday March 27, 2019 @07:28PM
(#19507342)
That’s good to know, but the parent’s examples seem to be referencing the issue of filenames that aren’t valid Unicode. The Linux example is invalid UTF-8, since Linux filenames are natively arbitrary byte sequences. The Windows example contains an unpaired surrogate followed by the reserved codepoint 0xfffe, since Windows filenames are natively UCS-2.
Re:Standardizing WASI: A system interface to run WebAssembly...
by the_mitsuhiko on Wednesday March 27, 2019 @07:57PM
(#19507588)
WTF-8 could solve the windows issue and I think for Linux it’s time to demand unicode filenames :)
Concerning character encodings, and potentially case sensitivity, the current high-level idea is that paths at the WASI syscall layer will be UTF-8, and WASI implementations will perform translation under the covers as needed. Of course, that doesn't fix everything, but it's a starting point.