News for hackers. Stuff that matters.
Re:String types in Rust by douche on Tuesday March 29, 2016 @07:17AM (#11380681)
Out of curiosity, what would be some examples of computers with non-unicode filesystems? I'm scratching my head trying to come up with anything other than old, old legacy systems that used EBCDIC.
Re:String types in Rust by the_why_of_y on Tuesday March 29, 2016 @02:41PM (#11383786)
POSIX does not require any particular encoding of file names. File names are not even required to be text, just a sequence of bytes; the only forbidden bytes are '\0' and '/'.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_...

Re:String types in Rust by lmm on Wednesday March 30, 2016 @04:16AM (#11387714)
Sure - but concretely, what specific systems have non-unicode filesystems? I know a lot of linux distributions allow you to choose a different encoding if you want, but the defaults push you towards UTF-8.
Re:String types in Rust by lmm on Tuesday March 29, 2016 @07:42AM (#11380765)
Windows.

(Many of the western codepages are either subsets of UTF-8, or not actually UTF-8 but can roundtrip through UTF-8 so you don't actually notice the difference as long as the program is just using the filename as an opaque "handle" and not actually manipulating it. In my case my filesystem is Shift-JIS for compatibility with some old Japanese programs, and that doesn't roundtrip cleanly through unicode)