aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/util/encoding.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2011-11-08 07:14:43 -0500
committerW. Trevor King <wking@drexel.edu>2011-11-08 07:14:43 -0500
commit1512c0e2a64e19c8d4e5697257a4df5ddd8bc727 (patch)
treeadad804ba4fc7a5178f7708f800c252a0b0fd826 /libbe/util/encoding.py
parent231dc0a3570f74f63b538544bdc805b71f5f6af0 (diff)
downloadbugseverywhere-1512c0e2a64e19c8d4e5697257a4df5ddd8bc727.tar.gz
Correct doc/install.txt to refer to INSTALL_OPTIONS instead of PREFIX.
This catches the docs up with the changes made in: commit a7ad89a6ad7da55089e6f9a4cdd645b7079ee04e Author: W. Trevor King <wking@drexel.edu> Date: Sat Apr 16 21:26:02 2011 -0400
Diffstat (limited to 'libbe/util/encoding.py')
-rw-r--r--libbe/util/encoding.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/libbe/util/encoding.py b/libbe/util/encoding.py
index 77d62fc..8663744 100644
--- a/libbe/util/encoding.py
+++ b/libbe/util/encoding.py
@@ -51,14 +51,10 @@ def get_input_encoding():
def get_output_encoding():
return sys.__stdout__.encoding or get_encoding()
-def get_filesystem_encoding():
+def get_text_file_encoding():
"""Return the encoding that should be used for file contents
-
- Note that `sys.getfilesystemencoding` returns the prefered
- encoding for file *names*, and we're assuming that this is also
- the prefered encoding for their contents.
"""
- return sys.getfilesystemencoding() or get_encoding()
+ return 'utf-8'
def get_argv_encoding():
return get_encoding()