http://bugs.openzim.org/show_bug.cgi?id=34
Summary: zim files with umlaut in file name do not open Product: openZIM Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: zimlib AssignedTo: tommi@tntnet.org ReportedBy: cip@gmx.at CC: dev-l@openzim.org Estimated Hours: 0.0
To reproduce problem:
Rename a zim file so that it contains an umlaut. e.g. film.zim to filmö.zim Open in kiwix or wikionboard Open fails. Error messages: Kiwix: Unable to load ... filmö.zim. Sind sie sicher, dass dies eine ZIM-Datei ist? WikiOnBoard: Error 86 opening file "... filmö.zim": Illegal byte sequence
(Tested with http://openzim.org/download/zim5/film.zim)
http://bugs.openzim.org/show_bug.cgi?id=34
Emmanuel Engelhart emmanuel@engelhart.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |emmanuel@engelhart.org
--- Comment #1 from Emmanuel Engelhart emmanuel@engelhart.org 2011-06-25 14:10:28 CET --- Kiwix has no problem to open files with accented paths on osx and GNU/Linux. It only fails on Windows.
http://bugs.openzim.org/show_bug.cgi?id=34
--- Comment #2 from Emmanuel Engelhart emmanuel@engelhart.org 2011-08-03 11:32:05 CET --- I'm pretty sure the problem is related to the zimlib usage of open() to open the zimfile. I think this function is not widestring compatible and we should use something like wopen().
http://bugs.openzim.org/show_bug.cgi?id=34
--- Comment #3 from Christian Pühringer cip@gmx.at 2011-08-05 10:41:12 CET --- For WikiOnBoard on Symbian this was not a bug in zimlib but in wikionboard. (Fixed by encoding filenames using QFile::encodeName()) Note, that for other platforms (i.p. Windows) still a change to zimlib may be required to fix this.
http://bugs.openzim.org/show_bug.cgi?id=34
Emmanuel Engelhart emmanuel@engelhart.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID
--- Comment #4 from Emmanuel Engelhart emmanuel@engelhart.org 2011-09-02 08:31:45 CET --- I have fixed this bug of Kiwix, without modifying the zimlib. So the zimlib is OK.