mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 15:12:11 +08:00
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. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22108 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
2f6d8ec100
commit
810c25c0b7
@ -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 \
|
||||
<screen><userinput>convmv -f cp936 -t utf-8 -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 \
|
||||
<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
|
||||
|
Loading…
Reference in New Issue
Block a user