flanglet / kanzi-cpp

Fast lossless data compression in C++
Apache License 2.0
137 stars 3 forks source link

Cannot access input file 'stdin', when decompressing #6

Closed twekkel closed 2 years ago

twekkel commented 2 years ago

$ echo hello | kanzi -c -i stdin -o stdout > hello.knz $ kanzi -d -i hello.knz -o stdout hello

$ cat hello.knz | kanzi -d -i stdin -o stdout Cannot access input file 'stdin'. Error code: 10

flanglet commented 2 years ago

I pushed a fix. Can you give it a try ?

twekkel commented 2 years ago

echo "This fix is okay!" | ./kanzi -c -i stdin -o stdout | ./kanzi -d -i stdin -o stdout This fix is okay!

thx for the quick fix!