Re: [Tracker] tracker-extract crashes



On 13/09/11 17:48, John stacy wrote:
Hello Jurg/Martyn,

Hello John,

I have looked more closely into the tracker-extract-mp3.so regarding the
mp3 crash I am having on my ubuntu.

I found out that I am getting *g_convert* error from the
convert_to_encoding() function.
the Error message from the g_convert is :- *Conversion from character
set 'Windows-1252' to 'UTF-8' is not supported*.

Hmm, interesting.

there by passing NULL to the "g_strsplit ()" function.

That's indeed not good.

To get the conversion support what do I have to do? do I require any
thing else?

g_convert() uses iconv_open() underneath and that has supported character sets as seen with iconv --list (on the command line).

I would expect g_convert() to work here actually:

 $ iconv --list |grep 1252
 CP1252//
 WINDOWS-1252//

any special configuration options to the glib or libc to enable this one?

Not that I know of, this is more of a GLib question I would say. From quick inspection of GLib, I wonder if it's because we should be using the EXACT string here (i.e. upper case "WINDOWS-"), I would try that first. Though I would be surprised if that really helps here, I would expect the encoding to be considered case insensitively.

We should still have a check before sending the output to g_strsplit() in any case because we can't guarantee it will work.

The other parameters passed to the g_convert has the valid readable
ID3Tag information.

Yea, that's why I believe it's not a case issue. Worth checking anyway.

--
Regards,
Martyn

Founder and CEO of Lanedo GmbH.



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