XZ Utils on DOS
===============
DOS-specific filename handling
xz detects at runtime if long filename (LFN) support is
available and will use it by default. It can be disabled by
setting an environment variable:
set lfn=n
When xz is in LFN mode, it behaves pretty much the same as it
does on other operating systems. Examples:
xz foo.tar -> foo.tar.xz
xz -d foo.tar.xz -> foo.tar
xz -F lzma foo.tar -> foo.tar.lzma
xz -d foo.tar.lzma -> foo.tar
When LFN support isn't available or it is disabled with LFN=n
environment setting, xz works in short filename (SFN) mode. This
affects filename suffix handling when compressing.
When compressing to the .xz format in SFN mode:
- Files without an extension get .xz just like on LFN systems.
- *.tar files become *.txz (shorthand for *.tar.xz). *.txz
is recognized by xz on all supported operating systems.
(Try to avoid confusing this with gzipped .txt files.)
- Files with 1-3 character extension have their extension modified
so that the last character is a dash ("-"). If the extension
is already three characters, the last character is lost. The
resulting *.?- or *.??- filename is recognized in LFN mode, but
it isn't recognized by xz on other operating systems.
Examples:
xz foo -> foo.xz | xz -d foo.xz -> foo
xz foo.tar -> foo.txz | xz -d foo.txz -> foo.tar
xz foo.c -> foo.c- | xz -d foo.c- -> foo.c
xz read.me -> read.me- | xz -d read.me- -> read.me
xz foo.txt -> foo.tx- | xz -d foo.tx- -> foo.tx !
Note that in the last example above, the third character of the
filename extension is lost.
When compressing to the legacy .lzma format in SFN mode:
- *.tar files become *.tlz (shorthand for *.tar.lzma). *.tlz
is recognized by xz on all supported operating systems.
- Other files become *.lzm. The original filename extension
is lost. *.lzm is recognized also in LFN mode, but it is not
recognized by xz on other operating systems.
Examples:
xz -F lzma foo -> foo.lzm | xz -d foo.lzm -> foo
xz -F lzma foo.tar -> foo.tlz | xz -d foo.tlz -> foo.tar
xz -F lzma foo.c -> foo.lzm | xz -d foo.lzm -> foo !
xz -F lzma read.me -> read.lzm | xz -d read.lzm -> read !
xz -F lzma foo.txt -> foo.lzm | xz -d foo.lzm -> foo !
When compressing with a custom suffix (-S .SUF, --suffix=.SUF) to
any file format:
- If the suffix begins with a dot, the filename extension is
replaced with the new suffix. The original extension is lost.
- If the suffix doesn't begin with a dot and the filename has no
extension and the filename given on the command line doesn't
have a dot at the end, the custom suffix is appended just like
on LFN systems.
- If the suffix doesn't begin with a dot and the filename has
an extension (or an extension-less filename is given with a dot
at the end), the last 1-3 characters of the filename extension
may get overwritten to fit the given custom suffix.
Examples:
xz -S x foo -> foox | xz -dS x foox -> foo
xz -S x foo. -> foo.x | xz -dS x foo.x -> foo
xz -S .x foo -> foo.x | xz -dS .x foo.x -> foo
xz -S .x foo. -> foo.x | xz -dS .x foo.x -> foo
xz -S x.y foo -> foox.y | xz -dS x.y foox.y -> foo
xz -S .a foo.c -> foo.a | xz -dS .a foo.a -> foo !
xz -S a foo.c -> foo.ca | xz -dS a foo.ca -> foo.c
xz -S ab foo.c -> foo.cab | xz -dS ab foo.cab -> foo.c
xz -S ab read.me -> read.mab | xz -dS ab read.mab -> read.m !
xz -S ab foo.txt -> foo.tab | xz -dS ab foo.tab -> foo.t !
xz -S abc foo.txt -> foo.abc | xz -dS abc foo.abc -> foo !
When decompressing, the suffix handling in SFN mode is the same as
in LFN mode. The DOS-specific filenames *.lzm, *.?-, and *.??- are
recognized also in LFN mode.
xz handles certain uncommon situations safely:
- If the generated output filename refers to the same file as
the input file, xz detects this and refuses to compress or
decompress the input file even if --force is used. This can
happen when giving an overlong filename in SFN mode. E.g.
"xz -S x foo.texinfo" would try to write to foo.tex which on
SFN system is the same file as foo.texinfo.
- If the generated output filename is a special file like "con"
or "prn", xz detects this and refuses to compress or decompress
the input file even if --force is used.
Bugs
xz doesn't necessarily work in Dosbox. It should work in DOSEMU.
Pressing Ctrl-c or Ctrl-Break won't remove the incomplete target file
when running under Windows XP Command Prompt (something goes wrong
with SIGINT handling). It works correctly under Windows 95/98/98SE/ME.
没有合适的资源?快使用搜索试试~ 我知道了~
liblzma.so源码
需积分: 0 2 下载量 55 浏览量
2024-01-04
20:14:29
上传
评论
收藏 2.75MB GZ 举报
温馨提示
共686个文件
c:136个
h:94个
xz:71个
用来编译liblzma.so的
资源推荐
资源详情
资源评论
收起资源包目录
liblzma.so源码 (686个子文件)
xz.1 129KB
xz.1 85KB
xz.1 84KB
xz.1 84KB
xz.1 79KB
xz.1 78KB
xz.1 68KB
COPYING.LGPLv2.1 26KB
xzdec.1 5KB
xzdec.1 4KB
xzdec.1 4KB
xzdec.1 4KB
xzdec.1 3KB
xzdec.1 3KB
xzgrep.1 3KB
xzdec.1 3KB
xzdiff.1 3KB
xzless.1 2KB
lzmainfo.1 2KB
xzgrep.1 2KB
xzgrep.1 2KB
xzgrep.1 2KB
xzmore.1 2KB
xzgrep.1 2KB
xzdiff.1 2KB
xzdiff.1 2KB
xzdiff.1 2KB
xzdiff.1 2KB
xzdiff.1 2KB
xzless.1 2KB
xzless.1 2KB
xzless.1 2KB
xzless.1 2KB
lzmainfo.1 2KB
xzgrep.1 2KB
xzless.1 2KB
lzmainfo.1 2KB
lzmainfo.1 2KB
lzmainfo.1 2KB
lzmainfo.1 2KB
xzmore.1 2KB
xzmore.1 2KB
xzmore.1 2KB
xzdiff.1 2KB
xzmore.1 1KB
xzmore.1 1KB
xzless.1 1KB
lzmainfo.1 1KB
xzmore.1 1KB
ABOUT-NLS 67B
configure.ac 38KB
Makefile.am 4KB
Makefile.am 3KB
Makefile.am 3KB
Makefile.am 3KB
Makefile.am 2KB
Makefile.am 1KB
Makefile.am 1KB
Makefile.am 822B
Makefile.am 787B
Makefile.am 480B
Makefile.am 409B
AUTHORS 1KB
build.bash 6KB
7z2lzma.bash 3KB
translation.bash 3KB
stream_decoder_mt.c 63KB
test_index.c 51KB
file_io.c 38KB
list.c 36KB
string_conversion.c 36KB
index.c 35KB
stream_encoder_mt.c 35KB
message.c 33KB
fastpos_table.c 33KB
getopt.c 32KB
coder.c 31KB
lzma_decoder.c 29KB
file_info.c 28KB
lzma_encoder_optimum_normal.c 23KB
lzma_encoder.c 22KB
args.c 20KB
lz_encoder.c 18KB
lz_encoder_mf.c 17KB
crc64_fast.c 17KB
test_filter_str.c 17KB
test_filter_flags.c 16KB
test_block_header.c 15KB
test_stream_flags.c 14KB
test_lzip_decoder.c 13KB
stream_decoder.c 13KB
common.c 11KB
test_index_hash.c 11KB
lzip_decoder.c 11KB
block_buffer_encoder.c 11KB
test_check.c 10KB
lzma2_encoder.c 10KB
suffix.c 10KB
main.c 10KB
stream_encoder.c 10KB
共 686 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
silent2Sky
- 粉丝: 6
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功