ReaderDict: fix use of dicts with ifo with DOS line endings (#9536)

Fixed in upstream sdcv, but we need to also do it in
our parsing of .ifo and picking out dict name.
Also includes minor bump of base/sdcv.
reviewable/pr9541/r1
poire-z 2 years ago committed by GitHub
parent 45e4f38c41
commit a8c81a90c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit 66f8b4ae3e110da48ad2978cfc362c695eb8717d
Subproject commit bcf5ab2fff5c3b2968e0903986aba15d7cbceece

@ -134,7 +134,7 @@ function ReaderDictionary:init()
if f then
local content = f:read("*all")
f:close()
local dictname = content:match("\nbookname=(.-)\n")
local dictname = content:match("\nbookname=(.-)\r?\n")
local is_html = content:find("sametypesequence=h", 1, true) ~= nil
-- sdcv won't use dict that don't have a bookname=
if dictname then

Loading…
Cancel
Save