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

Use case-insensitive comparison to find a part file in Xlsx ZIP archive #419

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

andy128k
Copy link
Contributor

@andy128k andy128k commented Apr 3, 2024

I have a file which calamine fails to open. It crashes with index out of bounds: the len is 0 but the index is 0 here. It happened that my file contains /xl/SharedStrings.xml (while [Content_Types].xml mentions /xl/sharedStrings.xml 🤦) and calamine expects /xl/sharedStrings.xml.

I did a quick search and it seems ECMA-376 assumes case-insensitive comparison of part names.

6.2.2.3 Part name equivalence and integrity in an abstract package

Equivalence of part names shall be determined by ASCII case-insensitive matching.

@dimastbk
Copy link
Contributor

dimastbk commented Apr 8, 2024

Maybe it should also be ported to xlsb?

@tafia tafia merged commit bb13f61 into tafia:master Apr 15, 2024
4 checks passed
@tafia
Copy link
Owner

tafia commented Apr 15, 2024

Good point.
Also can you add a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants