tastytea
308e2d271f
Skip rest of file if encoding of files in EPUB is broken.
...
Standard says UTF-8. I don't want to deal with weird Windows-encodings or
whatever this is.
Closes: #7
2021-05-28 13:57:51 +02:00
tastytea
84f600196c
Add error code to zip::exception.
2021-05-27 21:39:01 +02:00
tastytea
38bf9be948
Fix some more memory leaks.
2021-05-27 20:11:59 +02:00
tastytea
b24ea9b71e
Fix memory leak. 🤦
...
continuous-integration/drone/push Build is passing
Details
That's why I don't write C. 😄
This seems to fix issue #6 in single-threaded mode but sometimes throws “double
free or corruption (out)” in multi-threaded mode.
Bug: #6
2021-05-27 20:05:02 +02:00
tastytea
e773d4b78a
Implement zip::read_file() – Read file in archive; add test.
...
Also added zip::open_file() and zip::close_file() to deduplicate code.
2021-05-23 08:56:58 +02:00
tastytea
28c6c80def
Set C locale, treat EPUB file names as UTF-8.
...
EPUB file names MUST be UTF-8. ASCII is a subset of UTF-8.
2021-05-23 06:32:56 +02:00
tastytea
a941bcced3
Initialize the variables where they're needed.
2021-05-21 07:05:44 +02:00
tastytea
1a80f770ff
Fix error messages.
2021-05-21 04:04:17 +02:00
tastytea
4e8c6e7489
Add exception for zip processing.
...
continuous-integration/drone/push Build is failing
Details
- New dependency: libfmt.
- Translate error messages.
2021-05-21 03:25:42 +02:00
tastytea
222f802015
Basic zip file support.
...
continuous-integration/drone/push Build is passing
Details
Dumping the TOC works.
2021-05-21 01:56:37 +02:00