Closed AgentD closed 4 months ago
I have pushed 3 commits to the new 1.3.0 branch, implementing this feature.
Signed test builds from b4d5c76:
squashfs-tools-ng-1.2.0-mingw32.zip squashfs-tools-ng-1.2.0-mingw64.zip
GPG signatures for the archives:
EDIT: Bump build to newer commit
On Windows, some filenames are forbidden, e.g. ones containing characters like
:
or name/extensions likeCON
.Currently,
rdsquashfs
checks for those when unpacking an archive and refuses to create such entries. According to an e-mail exchange I had recently, there are other programs that work around this by mapping illegal characters into the Unicode Private Use Area (e.g.:
= 0x3a becomes 0xf03a). There is also a port ofsquashfs-tools
for Windows floating around that does this transparently. No idea what they do with files namedCON
, but it sounds like an interesting feature to have, allowing full round tripping on Windows without going through tar and Winrar/7zip.Here are some thoughts I had so far:
CON
could be broken up by inserting an_
?rdsquashfs
. It can generate a manifest file (with--describe
) that has the original names and remapped file source paths, allowinggensquashfs
to pack it with the original names without knowing of this trick.