bugfix [#23802] addons panel empty

was using locale.getpreferredencoding() to read the file which depends on the system setup, better use 'UTF-8' always.
This commit is contained in:
Campbell Barton 2010-09-15 16:42:10 +00:00
parent e6ce108f5c
commit fb454bfe08

@ -842,7 +842,7 @@ class USERPREF_PT_addons(bpy.types.Panel):
ModuleType = type(ast)
if speedy:
lines = []
line_iter = iter(open(mod_path, "r"))
line_iter = iter(open(mod_path, "r", encoding='UTF-8'))
l = ""
while not l.startswith("bl_addon_info"):
l = line_iter.readline()