Toshio Kuratomi added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19846>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to