tafia / calamine

A pure Rust Excel/OpenDocument SpreadSheets file reader: rust on metal sheets
MIT License
1.6k stars 155 forks source link

Password protected XLS is not detected #385

Closed saks closed 6 months ago

saks commented 6 months ago

We have lots of password protected XLS files that cannot be open with calamine currently. The error we get is always consistent:

Cfb(CodePageNotFound(7766))

The interesting part is that the value that CodePageNotFound wraps is different for different files. This value never looks like a valid codepage though.

Attached example file is an empty password protected spreadsheet (saved as "Excel97" compatible) allows to reproduce this issue.

pass_protected.xls