diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-15 20:42:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-15 20:42:10 +0400 |
commit | fb454bfe08e72ec5c546d91627a90a8989432e76 (patch) | |
tree | d2d46e0dd78d31d11c6f3e868e73e6c4c4a61cf1 | |
parent | e6ce108f5c34da9ae5c13c5ea066f7f5298aa8a2 (diff) |
bugfix [#23802] addons panel empty
was using locale.getpreferredencoding() to read the file which depends on the system setup, better use 'UTF-8' always.
-rw-r--r-- | release/scripts/ui/space_userpref.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |