rarfile
rarfile copied to clipboard
Give filepath with original separator to unrar cmd
As part of creating a RarInfo object, the library sanitizes the compressed filepaths by standardizing on "/" as a universal path separator. With certain inputs (RAR3 solid archives, and perhaps others as well), this sanitized filename is given as a cmdline argument to the extraction binary. This causes UnRAR.exe to fail to recognize the path, and output no data to stdout, resulting in an empty stream.
Fixed here by giving the original filepath to the unrar cmdline.
This PR fixes issues #68 . @markokr , could you merge this PR, please? Thanks in advance!
This fails with RAR3 paths on Linux. I will try the approach in #96 next.