fix popup/path bugs
This commit is contained in:
1 parent
d80c5692d0
commit
5974bfb783
5 files changed
+17
-5
No files matched your search
@@ -45,6 +45,7 @@ class KataGoEngine:
|
||||
self.stderr_thread = None
|
||||
self.write_stdin_thread = None
|
||||
self.shell = False
|
||||
self.write_queue = queue.Queue()
|
||||
|
||||
exe = config.get("katago", "").strip()
|
||||
if config.get("altcommand", ""):
|
||||
|
||||
@@ -409,7 +409,7 @@ class SGF:
|
||||
if match:
|
||||
encoding = match[1].decode("ascii", errors="ignore")
|
||||
else:
|
||||
encoding = chardet.detect(bin_contents[:300])['encoding']
|
||||
encoding = chardet.detect(bin_contents[:300])["encoding"]
|
||||
# workaround for some compatibility issues for Windows-1252 and GB2312 encodings
|
||||
if encoding == "Windows-1252" or encoding == "GB2312":
|
||||
encoding = "GBK"
|
||||
|
||||
Reference in new issue
Block a user