forked from platformio/platformio-core
Use locale encoding to decode subprocess output // Resolve #2890
This commit is contained in:
1 parent
7b6bab7f4e
commit
6d69c25a2f
2 files changed
+14
-2
No files matched your search
@@ -17,6 +17,7 @@
|
||||
|
||||
import inspect
|
||||
import json
|
||||
import locale
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
@@ -30,6 +31,10 @@ def get_filesystem_encoding():
|
||||
return sys.getfilesystemencoding() or sys.getdefaultencoding()
|
||||
|
||||
|
||||
def get_locale_encoding():
|
||||
return locale.getdefaultlocale()[1]
|
||||
|
||||
|
||||
def get_class_attributes(cls):
|
||||
attributes = inspect.getmembers(cls, lambda a: not (inspect.isroutine(a)))
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user