3 ms·
Zig's C interop is pretty good though, and there must be some decent native Unicode library out there somewhere right? ;) I've worked on a full-duplex file syn
by _vvhw 5y ago
Zig's C interop is pretty good though, and there must be some decent native Unicode library out there somewhere right? ;)
I've worked on a full-duplex file synchronization system that had to support cross-platform operating systems and file systems, across a variety of Unicode normalization schemes (and versions [1], which is why I introduced the question), and I'm personally satisfied that baking this into the language specification would be a mistake.
[1] For example, depending on the file system, there's simply no way to get the normalization right unless you reverse engineer the actual table they're using, or probe the file system to do the normalization for you.
- motiejus 5y agoWould Bellard's libunicode[1] work? [1]: https://github.com/bellard/quickjs/blob/master/libunicode.h https://github.com/bellard/quickjs/blob/master/libunicode.h