Hi Tom,

Tom Trauth wrote:

> Given an xz file, is there a way
> to determine which version of the xz format it uses.  Something like:
>
> xz-get-version foo.xz --> foo.xz uses XZ format version 1.0.4

Can you say more about the use case?  Would "xz --test" work?

The xz file format does not have a version number field --- instead,
there are reserved fields in various places.  This is convenient for
implementation: multiple new features can be developed in parallel
without knowing in advance which is going to be adopted first.  It is
also convenient for interoperability: a decoder supporting one feature
and not another does not need to lie via its interpretation of a
version number field.

Hope that helps,
Jonathan

Reply via email to