From: Jorg S. <Jor...@gm...> - 2008-12-01 13:13:33
|
Christophe Fergeau wrote: > 2008/11/30 Jorg Schuler <Jor...@gm...>: > >> libgpod shouldn't terminate just because the database contains invalid >> utf8 strings. I'm not even sure it should complain, but at least the >> g_return_val_if_fail would give some feedback that something is wrong... >> > > How does the ipod and the rest of libgpod copes with an ItdbTrack > containing invalid utf-8 data ? > > Christophe > The iPod seems to take them well. "According to the iPod the artist is "匀倀一", the album is "Unknown Album", and the title is "昀攀爀 圀爀搀 一椀愀攀爀最爀 攀 攀 昀 攀礀". The track plays fine." "I added the printf and after a bunch of normal track information this comes up: 䄀昀琀攀爀 圀漀爀搀猀㨀 一椀愀氀氀 䘀攀爀最甀猀漀渀Ⰰ 䄀甀琀栀漀爀Ⰰ ∀吀栀攀 䄀猀挀攀渀琀 漀昀 䴀漀渀攀礀∀ 䌀ⴀ匀倀䄀一 This is the artist field of a C-SPAN podcast (http://podcast.rbn.com/cspan/cspan/download/podaudio/arc_btv112208_ferguson.mp3)." I've attached the suggested patch -- maybe there's a better idea? Cheers, JCS. |