getnamo / 7zip-cpp

Fork of SevenZip++ for modern builds.
Other
221 stars 93 forks source link

Replace invalid characters for windows #21

Closed error454 closed 6 years ago

error454 commented 6 years ago

This enables the library to unzip archives whose filenames contain invalid windows characters. For instance an archive containing the file test<>:?.jpg. I used the 7z UI code as a reference, all invalid characters are replaced with an underscore _, so the file above becomes test____.jpg.

I attempted to add a test to the test app but could never get my boost dependencies squared away. So I ended up testing in my UE4 project by just replacing 7zpp_u.lib in the ZipUtility plugin. Everything is working perfectly for me.

getnamo commented 6 years ago

looks good to me, merged.