Dushistov / sdcv

https://dushistov.github.io/sdcv/
GNU General Public License v2.0
289 stars 42 forks source link

Segmentation fault with some dictionaries. #79

Closed Vuizur closed 2 years ago

Vuizur commented 2 years ago

When I try to use my dictionary russian.zip (which works fine in GoldenDict on Desktop) with sdcv, it causes a segmentation fault. I first reported this in https://github.com/koreader/koreader/issues/8751#issuecomment-1025564989 and also had the idea that in theory this could be caused by some accented Russian characters which can only be represented in two unicode characters unlike accented latin letters. (see the linked issue.) Or some part of my dictionary (generated by pyglossary) is broken. The definitions use HTML, but in theory that shouldn't be too different from plain text.

Dushistov commented 2 years ago

At least sdcv can not read ifo file properly. So it can not get the right "bookname", "wordcount" and so on. Because of the wrong line endings. It expects only unix-like end of lines in ifo file.

Vuizur commented 2 years ago

Thank you very much for the quick reply, after changing the line endings to LF everything works!