From fb454bfe08e72ec5c546d91627a90a8989432e76 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 15 Sep 2010 16:42:10 +0000 Subject: [PATCH] bugfix [#23802] addons panel empty was using locale.getpreferredencoding() to read the file which depends on the system setup, better use 'UTF-8' always. --- release/scripts/ui/space_userpref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py index 03e1b41ad32..1fd7afb27e1 100644 --- a/release/scripts/ui/space_userpref.py +++ b/release/scripts/ui/space_userpref.py @@ -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()