Re: [Nautilus-list] [PATCH] Custom icon patch



On Tuesday, June 5, 2001, at 10:30  PM, Anders Carlsson wrote:

So, my next solution would probably be to write a special xmlGetProp
function that would traverse the xmlAttrPtr tree and unescape any
occuring entities. How does that sound?

Sounds good, I think.

If the code to write strings with these characters works and it's just the code to read them that doesn't, then working around the libxml bug with our own xmlGetProp sounds like a good idea. You should give that a try.

Finally, what would you envision doing for the GNOME 2 time frame when we
have the newer fixed version of libxml?

Since xmlGetProp in libxml2 returns the entities unescaped in utf8
format this should be no problem.

Even with existing metafiles that have entities that use a local character set? That's the part I don't get. How does libxml2 know that these old metafiles have characters encoded in the particular character set from a locale and not from UTF-8? Also, what about files on disk? How can Nautilus tell whether a particular disk's file names are in a locale-specific character set like ISO 8859-1 or in UTF-8?

For URL cases, functions for converting between utf8 filenames and
gnome-vfs uris are probably needed, and for other cases (like the
annotations) we should just be fine since we can display such text with
gtk+2.

Wouldn't gnome_vfs_get_uri_from_local_path convert a UTF-8 filename to a URI properly? And gnome_vfs_uri_new would make a GnomeVFSURI from that. I don't understand what you are getting at here.

    -- Darin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]