Cleanup code, use latin1 encoding for amiga file names.

This commit is contained in:
2023-10-22 18:59:47 +02:00
parent 0d529baa8b
commit b1c2a496c8
2 changed files with 71 additions and 63 deletions
+21 -6
View File
@@ -14,19 +14,32 @@ on my Amiga. Both reading from and writing into archive was implemented.
Requirements
------------
ULha requires `free lha <http://lha.sourceforge.jp>`_ implementation to work.
ULha requires free `lha`_ implementation to work. There is another lha
implementation under development - `lhasa`_, although it is currently limited
to list and extract only.
Limitations
-----------
For filenames which contain other characters outside of ASCII set, there is no
way to operate on them as `lha`_ simply ignore those files. Extracting full
archive will extract also those files, although names would be incorrectly
decoded, and hence, unusable on the AmigaOS. Looking forward for the `lhasa`_
to be completed, and then will switch to it.
Installation
------------
* install `extfslib`_
* copy ``ulha`` to ``~/.local/share/mc/extfs.d/``
* add or change entry for files handle in ``~/.config/mc/mc.ext``::
* add or change entry for files handle in ``~/.config/mc/mc.ext``:
# lha
regex/\.[lL]([Hh][aA]|[Zz][hH])$
Open=%cd %p/ulha://
View=%view{ascii} lha l %f
.. code::ini
[lha]
Type=^LHa\ .*archive
Open=%cd %p/ulha://
View=%view{ascii} /usr/libexec/mc/ext.d/archive.sh view lha
License
=======
@@ -36,3 +49,5 @@ details.
.. _extfslib: https://github.com/gryf/mc_extfslib
.. _lha: http://lha.sourceforge.jp
.. _lhasa: https://github.com/fragglet/lhasa