02.06.2012 14:38, zw g написал: > But the odd thing is: > > I can Save playlist name in Chinese characters. (Although they > displayed in non-readable form in the playlists folder) > > In [8]: client.save(old_playlist_name) > > In [9]: client.listplaylists() > Out[9]: [{u'last-modified': u'2012-05-26T09:11:01Z', u'playlist': > u'\u5927'}]
Ok, I've just looked at source of MPD and glib and it seems there is a bug lies in between. MPD uses g_filetest() function to check if file really exists, but glib redefines g_filetest to be actually g_filetest_utf8(), which expected file name to be in UTF-8 instead of windows default encoding. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team