From: Daniele Forsi <dforsi@gm...> - 2007-08-12 18:11:18
The error is printed at line 396 of itdb_itunesdb.c because
g_filename_to_utf8() fails to convert a filename and returns NULL.
395: gchar *file_utf8 = g_filename_to_utf8(dir_file,-1,NULL,NULL,NULL);
396: gchar *file_stdcase = g_utf8_casefold(file_utf8,-1);
397: gboolean found = !g_utf8_collate(file_stdcase,component_stdcase);
a similar error is printed at line 397
GLib-CRITICAL **: g_utf8_collate: assertion `str1 != NULL' failed
in this case g_utf8_collate() returns 0 as if the two strings matched,
so I wonder if is it possible that in similar cases the code will
match a NULL/invalid directory name with e.g. iPodControl?
I've failed to create a directory with a name that can't be converted
so I can't test that
2007/8/12, Daniele Forsi <dforsi@...>:
> The error is printed at line 396 of itdb_itunesdb.c because
> g_filename_to_utf8() fails to convert a filename and returns NULL.
I thought I had already sent a patch for this kind of issues, but I
couldn't find it in the archives, and I couldn't find it on my
hard-drive either. The attached patch should avoid those warnings.