4 ms·
In Unix space we use text, almost exclusively. This byte stream thing is a windows/java bs thing.
by TheDesolate0 4y ago
In Unix space we use text, almost exclusively. This byte stream thing is a windows/java bs thing.
- tga_d 4y agoWhen contributing to uutils (the coreutils written in Rust), one of the bigger pain points with cross platform support is the way that in Unix, everything, including arguments, is just bytes, while on Windows, arguments are semi-opaque text strings. E.g., the -t option in sort, join, etc. takes an arbitrary byte (other than null, which is supported via \0), so you can sort, join, etc. binary inputs. However, the -t option will not let you use a multi-byte character, even valid Unicode characters like é, which, if Unix actually used text for everything, you would expect it to. Meanwhile, on Windows, uutils still doesn't support non-ASCII byte values for -t, because Windows doesn't provide a way to represent those.