! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfdesktop always parses menu.xml as UTF-8
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description huggie 2006-06-05 13:12:50 CEST
xfdesktop always parses menu.xml as UTF-8 but this means that you can't then refer to files (e.g. icons/executables) which are on the filesystem in iso-8859-1 say.

Even changing the xml definition at the top of the file didn't alter this behaviour.

Does menu.xml always have to be utf-8?

Is there a workaround for referring to this sort of files other than asking people ot store them as utf-8 on their filesystems?

The sort of error messages generated are:
** (xfdesktop:28650): WARNING **: XfceDesktopMenu: Error parsing xfdesktop menu file (0): Error on line 150 char 1: Invalid UTF-8 encoded text
Comment 1 Brian J. Tarricone (not reading bugmail) 2006-06-05 17:05:48 CEST
Yes, the file needs to be in UTF-8 (the GMarkup parser doesn't support anything else, IIRC).  This probably means that what should happen is any file name in the 'cmd' or 'icon' attributes should be converted to the filesystem encoding before trying to open the file.
Comment 2 Brian J. Tarricone (not reading bugmail) 2006-06-07 05:45:30 CEST
Ok, cmd= gets converted into the filesystem encoding before using it.  I'm not going to do icon=, as I think GtkIconTheme handles this.

Bug #1896

Reported by:
huggie
Reported on: 2006-06-05
Last modified on: 2009-07-14

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

Additional information