One thing that has been causing problems for me when coding for OS X is how filenames are stored - that is when containing Unicode characters.
For some reason Apple decided to use something they call canonical utf-8 for the filesystem - basically: "all decomposable characters are decomposed".
I know how to deal with this in Cocoa (can use NSString's fileSystemRepresentation method). But everywhere else I have endless problems. I am trying to write a simple C command line utility.
Apple says that have some file-system representation API for Carbon and Core Foundation as well but I have not found any documentation on this.
Anyone know how to map from Canonical-utf-8 to normal utf-8 in C?
Thanks
For more info:
File Encodings and Fonts