poka.sh

Docs

LZH

Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.

LZH/LHA Archive Preview.

At a glance

Purpose An LHA (LZH) archive under the .lzh extension: members with -lh?-, -lz?- or -pm?- method headers.
Extensions .lzh
Poka parser poka-lzh
Viewer poka-tree-viewer
Depth tier Parser with a shared viewer (see Depth tiers)
Breadth tier B4 Summary (see Breadth tiers)

How much Poka reads

B4 Summary. The container and metadata are read and summarised (counts, properties, structure), but the main content is not rendered.

Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-lzh/src/main.rs (606 lines) and plugin.json. The three unit tests cover the member walk and an entry running past the end; the corpus has O.LZH, read by no test. Covers .lzh. The tree shows file count, totals, ratio and methods, and the members folded into a directory tree with their sizes; header levels 0, 1 and 2 are read. Judgement: B4: the archive is listed but no member is extracted or shown.

What Poka does not read

  • Member contents are not extracted or shown
  • Level 3 headers are not read (judgement from the code)
  • Dates, attributes and CRCs are not shown
  • Caps of 5,000 members, 1,000 listed files and 3,000 nodes; files over 64 MiB are cut without a flag

Libraries

Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.

  • delharc (candidate; MIT OR Apache-2.0; Rust; https://docs.rs/crate/delharc/0.8.0) — Rust LHA/LZH header parser and decompressor, no_std capable, based on Lhasa; repo royaltm/rust-delharc. Does not create files or directories.
  • Lhasa (candidate; ISC; C; https://github.com/fragglet/lhasa) — C library and CLI to parse and extract LHA archives; read-only; also handles LArc and PMarc variants.
  • libarchive (candidate; BSD-2-Clause; C; https://github.com/libarchive/libarchive) — README lists LHA and LZH among readable formats. Licence inferred from the COPYING notice, which matches 2-clause BSD but is not named.
  • oxiarc-archive (candidate; Apache-2.0; Rust; https://github.com/cool-japan/oxiarc) — Archive container format support for OxiArc (ZIP, TAR, GZIP, LZH, XZ); v0.4.2, updated 2026-09-12; matched on lib.rs, not tested
  • unarc-rs (candidate; MIT OR Apache-2.0; Rust; https://github.com/mkrueger/unarc-rs) — Universal archive extraction & decompression library for retro + modern formats (7z, ZIP, RAR, LHA/LZH, TAR, ACE, ARJ, ARC/PAK, ZOO, HA, JAR, UC2, SQ/SQ2, SQZ, HYP, gz, bz2, Z, ICE, Pack-Ice).; v0.7.2

Sources

  • parsers/poka-lzh/src/main.rs
  • parsers/poka-lzh/plugin.json