Dan Nicholson wrote:
============= Version 2.9.7 ============= ... Only use UTF8 with mkisofs if it is patched to support it ...
and it still gets that wrong.The wiki page and the bug report are a bit wrong. Sorry for that. What actually happens is:
nautilus-cd-burner runs "mkisofs -input-charset utf-8". If it doesn't print "unknown charset", the "-input-charset utf-8" is added to mkisofs options unconditionally. Other values of -input-charset are never added.
I attach a sample gzipped POSIX tar archive containing a single file "нули.dat" with Russian characters in its name and two megabytes of zeroes as its contents, as a testcase. The archive was created as:
tar --format=posix -zcf testcase.tar.gz нули.datThe "--format=posix" is needed to make sure that your tar converts the filenames to the locale encoding while extracting.
To perform the test, start from a text console: unset LANG unset LC_ALL export LC_CTYPE=ru_RU.KOI8-R export G_FILENAME_ENCODING="@locale" tar zxf testcase.tar.gz startx `which gnome-session`In that session, make sure that the locale settings are still the same (LC_CTYPE=ru_RU.KOI8-R) and then try burning the "testcase" directory on the CD, if you can (Nautilus CD burner complains about invalid UTF-8 sequence, although it should not use UTF-8 at all in this case). Then erase, exit the session, and retry with ru_RU.UTF-8. Then try reading the CD in Windows.
So the end result is:With unpatched mkisofs, all attempts to burn (in Nautilus CD Burner) a CD with non-ASCII filenames fail (either because Nautilus CD burner treats a filename as UTF-8 and complains about invalid UTF-8 sequence, or because mkisofs fails due to -input-charset utf-8). With patched mkisofs, such attempts work only in UTF-8 locales (because of the above-mentioned mis-treating).
So the warning is: "This program can successfully create a CD with non-ASCII characters in filenames only if you use UTF-8 based locale. Users of other locales should consider an alternative, e.g., running mkisofs by hand".
-- Alexander E. Patrakov
testcase.tar.gz
Description: GNU Zip compressed data
-- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
