This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author a.badger
Recipients Sworddragon, a.badger, bkabrda, larry, lemburg, loewis, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, terry.reedy, vstinner
Date 2013-12-10.23:30:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386718243.11.0.395842172955.issue19846@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, it returns a list but unless I'm missing something in the general case it's the caller's responsibility to loop through the charsets to test for failure and try again.  This is not done automatically.

In the specific case we're talking about, first get_filename_charset() decides to only return the first entry in the list of charsets: list.https://git.gnome.org/browse/glib/tree/glib/gconvert.c#n1118

and then g_filename_to_utf8() disregards the charsets altogether because it sees that the filename is supposed to be utf-8 https://git.gnome.org/browse/glib/tree/glib/gconvert.c#n1160
History
Date User Action Args
2013-12-10 23:30:43a.badgersetrecipients: + a.badger, lemburg, loewis, terry.reedy, ncoghlan, pitrou, vstinner, larry, r.david.murray, Sworddragon, serhiy.storchaka, bkabrda
2013-12-10 23:30:43a.badgersetmessageid: <1386718243.11.0.395842172955.issue19846@psf.upfronthosting.co.za>
2013-12-10 23:30:43a.badgerlinkissue19846 messages
2013-12-10 23:30:42a.badgercreate