Display of filenames in FXFileDialog

Enno Rehling <[email protected]>
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <CAF2+q6DB2ZGN5bnYBbxnqcXb9M5=U51HKYk2K5cR+rceSGWLFg@mail.gmail.com>
My application (written with Fox 1.6) uses a FXFileDialog. Fine on Windows
and Linux, but on macOS, this displays files with a non-ascii character in
them incorrectly. I believe this may be because while filesystems on the
Mac use UTF8, they chose a different representation for diacritics? See
discussion at
https://stackoverflow.com/questions/6153345/different-utf8-encoding-in-filenames-os-x/6153713
[image: image.png]
The result of FXFileDialog.getFilename() has different byte values, too!
When I call normalize() on it, it gets the "canonical" UTF8 representation,
but I cannot open a file by that name, obviously.
The filesystem in question is APFS.
Notably, the file looks fine on the terminal, because Apple knows about its
own quirks:
enno@mac$ ls *.cr
böse.cr

Is there a way to make FXFileDialog render filenames in a
filesystem-appropriate fashion?

Enno.

_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users
image.png (image/png, 52.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.