Re:cuneicode, and the Future of Text in C
by TazeTSchnitzel on Wednesday June 07, 2023 @02:35PM
(#36231342)
Rust has an abstraction for the system encoding: OsStr. Though I think most Rust programs just assert everything is UTF-8, the language goes to great lengths to ensure it is possible, and not even particularly difficult, to write Rust code that can handle Windows's broken UTF-16, yet which isn't Windows-specific.
[ Parent
| on HN ]
Re:cuneicode, and the Future of Text in C
by Georgelemental on Wednesday June 07, 2023 @03:46PM
(#36232463)
Eh, the `OsStr` API has warts still, some parts are unstable (https://github.com/rust-lang/rust/issues/111544).