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

Why I couldn't untar these specific tar files? #25

Open
iori57 opened this issue Jun 16, 2015 · 3 comments
Open

Why I couldn't untar these specific tar files? #25

iori57 opened this issue Jun 16, 2015 · 3 comments

Comments

@iori57
Copy link

iori57 commented Jun 16, 2015

Any files listed here: https://code.google.com/p/tesseract-ocr/downloads/list

For example, this file: https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.deu.tar.gz

It is a tar.gz, I have no problem using another library to extract it to become just tar, however when I tried to use this library it fails to untar it.. I stepped into the code and found that at one point it reach a line with comment "// It's a nul block" and finally "// It's not a tar type" with error "invalid block type"

Any suggestion on what to look for? I tried to use untar command in OSX terminal and it manage to untar the same file without issue so it shouldn't be corrupted. Furthermore I tried on the rest of the files in the download list all of them gives the same behaviour.

Is there different formats for TAR files?

Thanks in advance!

@iori57
Copy link
Author

iori57 commented Jun 20, 2015

Seems like it is due to the 'L' block type, which means very long file names

#20

How to handle long file names?

@vittoriom
Copy link

I think we're going to properly fork this repo, add the 'L' block type support, and open a PR. Will mention it here!

@vittoriom
Copy link

We forked the repo, you can find our version here https://github.com/vittoriom/Light-Untar-for-iOS

The PR for the long filename support is here #27

;)

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

No branches or pull requests

2 participants