Tiny Core Extensions > TCE Bugs
GTK2 and GTK3 cannot handle Unicode characters in file names
GNUser:
Rich - Good to know. Thanks.
Two quick questions:
1. Can anyone confirm whether glib2.tcz has been stripped of "unicode tables" in the interest of keeping the extension small?
2. In case these tables are absent from glib2.tcz, how do I obtain them? Can I just copy the relevant files from a different distro?
Rich:
Hi Hi GNUser
--- Quote from: GNUser on December 11, 2019, 06:49:28 PM ---A helpful GNOME/GTK user (developer?) suggested this issue may be due to unicode data tables missing from glib2. He recommended that I try installing glib2-locale.tcz: https://discourse.gnome.org/t/support-for-unicode-characters-in-gtk2-3-file-selection-box/2338/5
Alas, glib2-locale.tcz is not available in the Pure64 repository :( I put in an extension request.
--- End quote ---
Maybe he meant glibc_gconv.tcz or glibc_i18n_locale.tcz (which also contains character maps)?
GNUser:
glibc_gconv.tcz has been loaded all along. Loading glibc_i18n_locale.tcz makes no difference :(
GNUser:
In case this helps, here is a simple way I can trigger the bug: I launch my web browser (iridium, which uses GTK3), go to duckduckgo.com, press Control+p to print, choose "Save as PDF", then click "Save".
The page name (DuckDuckGo – Privacy, simplified.) is automatically selected as the filename for the PDF and the dash (between DuckDuckGo and Privacy) triggers the bug. I cannot print to PDF until I delete the dash in the filename (replacing it with a hyphen, for example).
GNUser:
Solved! This does the trick:
--- Code: ---$ export G_FILENAME_ENCODING=UTF-8
--- End code ---
Make it permanent by adding it to ~/.profile
I found the solution when I stumbled upon this:
https://www.gnu.org/software/guile-gnome/docs/gtk/html/GtkFileChooser.html#GtkFileChooser
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version