Changeset 810c25c


Ignore:
Timestamp:
09/07/2019 05:30:58 PM (5 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 9.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
4572fb2
Parents:
2f6d8ec
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/unzip.xml

    r2f6d8ec r810c25c  
    135135    emulator.</para>
    136136
    137     <para>2) After running <command>unzip</command>, fix the damage made to
     137    <para>2) Use <command>bsdtar xf</command> from
     138    <xref role="nodep" linkend="libarchive"/> to unpacking the ZIP archive,
     139    then fix the damage made to
    138140    the filenames using the <command>convmv</command> tool
    139141    (<ulink url="http://j3e.de/linux/convmv/"/>). The following is an example
    140     for the ru_RU.KOI8-R locale:</para>
    141 
    142     <blockquote>
    143       <para>Step 1. Undo the conversion done by
    144       <command>unzip</command>:</para>
    145 
    146 <screen><userinput>convmv -f iso-8859-1 -t cp850 -r --nosmart --notest \
     142    for the zh_CN.UTF-8 locale:</para>
     143
     144<screen><userinput>convmv -f cp936 -t utf-8 -r --nosmart --notest \
    147145    <replaceable>&lt;/path/to/unzipped/files&gt;</replaceable></userinput></screen>
    148 
    149       <para>Step 2. Do the correct conversion instead:</para>
    150 
    151 <screen><userinput>convmv -f cp866 -t koi8-r -r --nosmart --notest \
    152     <replaceable>&lt;/path/to/unzipped/files&gt;</replaceable></userinput></screen>
    153     </blockquote>
    154146<!--
    155147    <para>3) Apply the optional
Note: See TracChangeset for help on using the changeset viewer.