Red Hat Bugzilla – Bug 106479
mkisofs doesn't encode utf-8 filenames correctly for joliet extension
Last modified: 2007-11-30 17:10:32 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703
Description of problem:
On utf-8 filesystem it's not possible to create iso-images with correctly
encoded Joliet filenames. mkisofs has -input-charset option but utf-8 is not
Steps to Reproduce:
Create an iso image with mkisofs -J on filesystem with utf-8 filenames.
(Filenames must have non-ASCII characters.)
Actual Results: Filenames in joliet extension are incorrectly encoded.
There is a patch available on
http://joerghaeger.de/webCDwriter/mkisofs+UTF-8.html . However this patch causes
mkisofs to work incorrectly on non-utf-8 systems.
please report this upstream to the author of cdrtools... I will consider this
patch for Fedora Core 2
See a thread of articles
I loved to see this fixed in the upstream, but the response hasn't been
positive. No response wouldn't be considered as positive, would it?
Anyway, the patch by Ilya Konstantinov (built upon my patch) works not only for
UTF-8 but also for other character encodings.
We can further improve it to make it independent of iconv(3) used. Currently, it
assumes that the name of the codeset for UTF-16LE is 'UTF-16LE', but different
iconv(3) implementations use different names for UTF-16LE. To avoid this
problem, we can convert the input charset to UTF-8 first and then use our
own(built-in) UTF-8 -> UTF-16LE conversion routine.
Of course, if we just want to fix this on Linux or where Bruno's libiconv is
used, we don't have to worry about the portability.
BTW, would anyone give yet another try at persuading the maintainer of
mkisofs(cdrtools) to support multibyte character encodings with iconv?
As Jungshik Shin said the upstream author seems not to be interested.
I have ported the patch by Shin & Konstantinov to the latest version
of cdrtools and added automatic detection of UTF-8 encoding. The patch
is made for cdrtools 2.01a19 but applies also to version 2.0. It is
Known issue is that mkisofs won't print character encodings available
through iconv with "-input-charset help".
cool! many thanx!
The patch was broken. New version is found from:
I may make more changes later. Latest version will be found in the
Version 9 of the patch which was included to Rawhide had a bug related
to sorting of the Joliet items. (Details:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=230725) Version 10
fixes this bug.