diff options
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/util/encoding.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbe/util/encoding.py b/libbe/util/encoding.py index 3fde8cb..77d62fc 100644 --- a/libbe/util/encoding.py +++ b/libbe/util/encoding.py @@ -23,6 +23,7 @@ Support input/output/filesystem encodings (e.g. UTF-8). import codecs import locale +import os import sys import types @@ -31,7 +32,8 @@ if libbe.TESTING == True: import doctest -ENCODING = None # override get_encoding() output by setting this +ENCODING = os.environ.get('BE_ENCODING', None) +"override get_encoding() output" def get_encoding(): """ |