On 2022-12-29 23:51, Enno Rehling wrote:
> 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?
What are you using for FOX's font system? XLFD or FreeType?
The configure script tries to use FreeType if the Xft, fontconfig
and freetype libraries are available, and falls back on XLFD otherwise.
The latter is older technology, and does not, AFAIK handle unicode
beyond
16-bit characters; also, its necessary to select unicode encoded font.
Other reasons stuff may not show correctly: missing glyphs in the font;
I consider this unlikely however since most would cover umlaut.
-- JVZ
_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users
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.