2 ms·
you cant ever correctly show filenames to users either If I create a file whose name consists entirely of bytes that correspond to non-printable characters, ho
by ubernostrum 8y ago
you cant ever correctly show filenames to users either
If I create a file whose name consists entirely of bytes that correspond to non-printable characters, how would you display that in the language of your choice?
If I create a file whose name cannot possibly be valid UTF-8, how would you display that in the language of your choice?
Both of these things are legal to do on at least some systems. Presumably you have in mind a language which will magically handle this case with no extra effort from the programmer, though, so I'm curious to know the language and what it would do.