Skip to content

Zip file compressed by ouch in Windows cannot be correctly decompressed by ouch in Linux #842

@lucidfrontier45

Description

@lucidfrontier45

Version

0.6.1

Description

Just as discribed in the title. The problem can be reproduced by the following procedure.

test_dir.zip

Windows side

Prepare a directory structure like this

test_dir/
  test.txt

Compress it with ouch

ouch.exe compress test_dir test_dir.zip

Linux side

Decompress the zip file

ouch decompress test_dir.zip

Current Behavior

Decompression result is wrong

test_dir/
    test_dir <- this is an empty directory
    'test_dir\test.txt' <- file content is correct but file name is wrong

Looks like path/file name handling in Windows is wrong.

Expected Behavior

The decompressed directory structure is the same as input in the Windows side

test_dir/
  test.txt

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions