[Tracker] [Patch] Do not skip files having invalid UTF8



Hello,
a filename may be invalid (from a UTF8 point of view) but the content
may be perfectly valid. This happens, for example, when importing files
in a locale (FAT32) to locale (UTF8). This leads for example to files
named as:
Vincent Delerm - 11 - L'heure du thï.mp3

instead of
Vincent Delerm - 11 - L'heure du thÃ.mp3



Unfortunately, Tracker skips on such file. The attached patch fix the
problem by replacing g_filename_to_utf8() with g_filename_basename(),
which always returns a valid UTF8 filename.

There are other occurences g_filename_to_utf8() that perhaps need to be
changed but I was not sure on those. Therefore this patch is just a
sugestion, and perhaps not the best way to fix the problem.


Best,
Julien

Attachment: trackerpatch.diff
Description: Text Data



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