News for hackers. Stuff that matters.
Re:The Python Unicode Mess by ubernostrum on Saturday October 06, 2018 @11:40PM (#18158721)
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.

There are no comments on this comment yet.