Author: xry111
Date: Sat Sep 7 10:30:58 2019
New Revision: 22108
Log:
unzip: use bsdtar instead of unzip for convmv
The stupid conversion of unzip makes it impossible to use convmv to
restore the file names. So use bsdtar (which does not perform any
conversion) to extract the files, then use convmv to fix the names.
Modified:
trunk/BOOK/general/sysutils/unzip.xml
Modified: trunk/BOOK/general/sysutils/unzip.xml
==============================================================================
--- trunk/BOOK/general/sysutils/unzip.xml Sat Sep 7 06:43:10 2019
(r22107)
+++ trunk/BOOK/general/sysutils/unzip.xml Sat Sep 7 10:30:58 2019
(r22108)
@@ -134,23 +134,15 @@
running the <ulink url="http://www.winehq.com/">Wine</ulink> Windows
emulator.</para>
- <para>2) After running <command>unzip</command>, fix the damage made to
+ <para>2) Use <command>bsdtar xf</command> from
+ <xref role="nodep" linkend="libarchive"/> to unpacking the ZIP archive,
+ then fix the damage made to
the filenames using the <command>convmv</command> tool
(<ulink url="http://j3e.de/linux/convmv/"/>). The following is an example
- for the ru_RU.KOI8-R locale:</para>
+ for the zh_CN.UTF-8 locale:</para>
- <blockquote>
- <para>Step 1. Undo the conversion done by
- <command>unzip</command>:</para>
-
-<screen><userinput>convmv -f iso-8859-1 -t cp850 -r --nosmart --notest \
-
<replaceable></path/to/unzipped/files></replaceable></userinput></screen>
-
- <para>Step 2. Do the correct conversion instead:</para>
-
-<screen><userinput>convmv -f cp866 -t koi8-r -r --nosmart --notest \
+<screen><userinput>convmv -f cp936 -t utf-8 -r --nosmart --notest \
<replaceable></path/to/unzipped/files></replaceable></userinput></screen>
- </blockquote>
<!--
<para>3) Apply the optional
<filename>unzip-5.50-alt-iconv-v1.1.patch</filename> patch to
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page