Re: [Inkscape-devel] non-ascii filenames
open()/readdir() etc. take as argument a nul-terminated string of bytes, not some notion of characters.
I doubt that. E.g. my Windows partition stores Cyrillic filenames in CP866, but the Linux partition uses KOI8-R (my locale encoding). The Linux kernel is smart enough so it translates Windows filenames into KOI8-R and back when I access the Windows partition. So it's not "just bytes" for the kernel but characters that may need to be reencoded in some situations.
preferences.xml should store filenames as such.
Not as such, but as specified in the XML encoding declaration, which in our serializer is always UTF-8.
If <gui toolkit xyz> does something different, then that toolkit is broken and should be fixed.
I think GTK does a good job of unifying everything into UTF-8 internally, but the file-accessing function are probably outside of its control and therefore use the locale encoding.
_________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2...
participants (1)
-
bulia byak