News for hackers. Stuff that matters.
Re:How to write cross-platform code by wrs on Friday October 22, 2010 @09:38PM (#1822231)
Lots of good advice, but watch out for Unicode. IIRC, you can have illegal surrogate pairs in NTFS filenames (which are a kind of naive UTF-16), which renders them unconvertible to UTF-8. Certainly an edge case, but that's where bugs come from...

(BTW, what really shocked me about this was that it means some file paths can't be turned into file: URLs! I had assumed you could always do that.)

There are no comments on this comment yet.