Commit 4edb86e8 authored by Eric S. Raymond's avatar Eric S. Raymond

Specify an encoding so we'll throw an error on dodgy data.

parent 999a5379
......@@ -58,7 +58,7 @@ var genericLanguages = []genericLanguage{
for line in rfp:
if line[0] != "{":
entry = json.loads(line)
entry = json.loads(line, encoding='ascii')
if "Ext" in entry:
for i in range(len(entry["Ext"])):
entry["Ext"][i] = entry["Ext"][i].encode("ascii")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment