GNOME Bugzilla – Bug 165002
script-fu-path ignored, contains non-ascii-character (german umlaut)
Last modified: 2008-01-15 12:46:06 UTC
Hello, just a minor problem with my GIMP on Windows: I like to seperate additionals plugins and scripts from those that are originally distributed with the GIMP package. So I am storing the additional plugins and scripts in %USERPROFILE%\.gimp-2.2\plugins and %USERPROFILE%\.gimp-2.2\scripts This works fine for the plugins (and brushes, palettes, patterns, etc.), but not for the scripts. My first thought was that this is because of the non- ascii character in my %USERPROFILE% ("C:\Dokumente und Einstellungen\Günther Dirks\"), but it's only the script path that's not working. I checked File/Preferences/Directories/Scripts (Datei/Einstellungen/Ordner/Skripte in german). It contains my private script path. I checked the gimprc file, too. It contains the line (script-fu-path "C:\\Dokumente und Einstellungen\\Günther Dirks\\.gimp-2.2 \\scripts;C:\\Programme\\GIMP-2.2\\share\\gimp\\2.0\\scripts") Neither changing "Günther" to "Günther" nor removing the entire line changes the problem. A workaround is to adding another script folder in the preferences, that doesn't contain non-ascii character ("C:\foo"). Regards, Günther (Guenther)
GTK+ 2 for Windows (version 2.4.14) and GIMP 2.2.0 were downloaded from http://gimp-win.sourceforge.net/ This problem existed already in GIMP 2.0.x (Windows).
Sounds like the filename encoding problems that were recently addressed in glib. You should try with glib-2.6.
Thanks. I will try it with glib-2.6. Unfortunately I'm unable to compile it myself. So I will wait, until someone has done it. Do you have a guess why only the script path is affected and all the other paths work?
Hello, just for the record: I' ve just upgraded to GIMP 2.2.3, but stayed with GTK+ 2.4.14. As GTK+ remained the same, the problem still exists. I will go on as Sven Neumann suggested. Günther
Setting as NEEDINFO because we need to know whether upgrading glib sovles the problem.
Sorry for not having tested this with glib-2.6! I will do it tomorrow. Günther
Thanks. Didn't mean to rush you, just doing some Bugzilla housekeeping.
Hello, I tried GTK+ 2.6.2 together with GIMP 2.2.3 (all from http://gimp- win.sourceforge.net/ and http://sourceforge.net/projects/gimp-win/) this morning. I'm not sure if this combination is supposed to work, because my initial problem is not solved, while a new encoding problem has occured. Some details: - Windows XP SP2, german encoding ("DE") - %USERPROFILE% contains german umlaut ("C:\Dokumente und Einstellungen\Günther Dirks") - Uninstalled GTK+ 2.4.14, but left GIMP 2.2.3 installed - Installed GTK+ 2.6.2 - Removed GIMP settings (directories .gimp-2.2 and .thumbnails in my % USERPROFILE%) Unchanged behaviour: - scripts in %USERPROFILE%/.gimp-2.2/scripts are not recognized - plug-ins, patterns, etc in %USERPROFILE%/.gimp-2.2 work fine New problem: - Thumbnails can not be written. When I open an image with "Datei + Öffnen" (File + Open), GIMP tries to generate and save the thumbnail. Saving the thumbnail fails with: GIMP Meldung »C:\Dokumente und Einstellungen\G?nther Dirks\.thumbnails\normal\gimp-thumb- 1616-9b36a26e (invalid encoding)« konnte nicht zum Schreiben geöffnet werden: Invalid argument In english probably: GIMP Message »C:\Dokumente und Einstellungen\G?nther Dirks\.thumbnails\normal\gimp-thumb- 1616-9b36a26e (invalid encoding)« could not be opened for saving: Invalid argument Günther
Your new problem is supposed to be fixed (or rather worked around) with GIMP 2.2.4.
Thanks for the information; removing NEEDINFO flag.
Hello, I've tried GIMP 2.2.4 and GTK+ 2.6.2 (all from http://gimp- win.sourceforge.net/) today. Unfortunately, the encoding problems (including the new preview problem) remained. All details like comment #8. Guenther
Let's concentrate on the script-fu problem here. Changing the component to Script-Fu since it seems pretty clear that the problem is there.
Well, this could not have worked (on a filesystem with non-UTF-8 encoding). 2005-03-04 Sven Neumann <sven@gimp.org> * plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts): need to convert script-fu-path to filesystem encoding. Should fix bug #165002.
Thanks Sven, that was quick! What about the preview problem with GTK+ 2.6.2? Submit a new bug report? Guenther
Actually there already is one but that got reassigned to glib. See bug #167973.