libxls / libxls

Read binary Excel files from C/C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read this file with error "Unable to read sector"

MatthieuTexier opened this issue · comments

Hello,
I cannot read the attached file.
I didn't find anything weird in it.

last errors are:
Error: fread wanted 1 got 0 loc=16896
Error: Unable to read sector #32
Error: failed to read OLE block

I had to rename the file as .txt to import it :-(
NO-BAT035A-00.txt

Thanks for your help.

Can anybody help ?
Thank

Hi,

Please test with the latest version of libxls. This file is opening fine on my machine.

If you are still experiencing problems, please include details about your platform (operating system and compiler).

Thank you for your help.
I did try with the latest sources and my latest compiler, and still have the same problem.
resuts.txt

Configuration:
C compiler: gcc
C++ compiler: g++
CFLAGS: -g -O2
CXXFLAGS: -g -O2
LIBS:
Host: x86_64-pc-linux-gnu
Extra ld flags:
gcc version 8.3.0 (Debian 8.3.0-6)

Can you please try with the "dev" branch?

https://github.com/libxls/libxls/tree/dev

Thanks

sure.
It's working fine on branch dev :-)
results.txt

Merged fix into master branch, closing issue.