# wasm/archive: correctly parse long file names · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/aca911ca18d43fddcc3d36f44d3750d07b53fb56)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: aca911ca18d43fddcc3d36f44d3750d07b53fb56

Requested commit: aca911ca18d43fddcc3d36f44d3750d07b53fb56

Commit: aca911ca18d43fddcc3d36f44d3750d07b53fb56

Tree: a5b7eca81ae4e2a2b91ea3c3df0e797ce03c93a4

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm/archive: correctly parse long file names

Wasm archive files are encoded the same way as GNU.
This means that the header notates the character index within
the long file name list rather than the length of the name.
The entire name is then delimited by an LF character (0x0a).

This also makes a cosmetic update to remove the `self` name,
and rather label it as `archive` instead.

```

## Parents

- [e5e6eb983159df0a089e7d1c8efcea9006e253a9](https://git.cafe/gitcafe/zig/commit/e5e6eb983159df0a089e7d1c8efcea9006e253a9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/aca911ca18d43fddcc3d36f44d3750d07b53fb56?format=markdown)
