gkathir15 / lz4

Automatically exported from code.google.com/p/lz4
0 stars 0 forks source link

lz4 auto-decompress does not work #153

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compress a file to 'x.json.lz4'
2. Decompress the file using `lz4 x.json.lz4 decompress.json`
3. lz4 actually recompresses the file instead of decompressing it.

The -h output of lz4 says

 -d     : decompression (default for .lz4 extension)

However, when I ran lz4 on a file named 'zgrab.results.json.lz4` the lz4 CLI 
still compressed the file.

$ lz4 zgrab.results.json.lz4 decompressed.json
Compressed 78117187274 bytes into 76631824348 bytes ==> 98.10%

This is on Ubuntu 14.04.1 LTS with the latest version of lz4 installed from the 
package repositories. Running lz4 with -d gives the expected output (a 
decompressed file).

lz4 cli version string:
*** LZ4 Compression CLI 64-bits r114, by Yann Collet (Apr 14 2014) ***

Original issue reported on code.google.com by davidcad...@gmail.com on 26 Jan 2015 at 11:18

GoogleCodeExporter commented 8 years ago
Good point. Thanks for notifying.

Original comment by yann.col...@gmail.com on 26 Jan 2015 at 11:20

GoogleCodeExporter commented 8 years ago
I tried to reproduce the issue, but couldn't.
I suspect it may have already been fixed, since latest version is now r127, so 
there are quite many fixes included since r114.

I would like to suggest you to update your version to r127 if you can, and 
repeat the test.

Original comment by yann.col...@gmail.com on 26 Jan 2015 at 11:24

GoogleCodeExporter commented 8 years ago
The problem seems already corrected

Original comment by yann.col...@gmail.com on 13 Mar 2015 at 7:57