Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pk3 files created on Windows are corrupted on Linux #5

Closed
Aciz opened this issue May 20, 2024 · 0 comments
Closed

pk3 files created on Windows are corrupted on Linux #5

Aciz opened this issue May 20, 2024 · 0 comments
Labels
bug Something isn't working priority: high

Comments

@Aciz
Copy link
Collaborator

Aciz commented May 20, 2024

The packing algorithm uses backslashes as path separators on Windows, which results in corrupted archives on Linux. Files packed on Linux can be opened fine on Windows.

This behavior is standard when using some Windows tools to create zip files (pwsh Compress-Archive for example), although it does in fact break the ZIP file specification (section 4.4.17.1)

   4.4.17 file name: (Variable)

       4.4.17.1 The name of the file, with optional relative path.
       The path stored MUST NOT contain a drive or
       device letter, or a leading slash.  All slashes
       MUST be forward slashes '/' as opposed to
       backwards slashes '\' for compatibility with Amiga
       and UNIX file systems etc.  If input came from standard
       input, there is no file name field.

image

@ovska ovska closed this as completed May 27, 2024
@ovska ovska added bug Something isn't working priority: high labels Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: high
Projects
None yet
Development

No branches or pull requests

2 participants