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.
This commit is contained in:
poire-z
2022-09-21 00:26:10 +02:00
committed by GitHub
parent 45e4f38c41
commit a8c81a90c3
2 changed files with 2 additions and 2 deletions

2
base

Submodule base updated: 66f8b4ae3e...bcf5ab2fff

View File

@@ -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