summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--feedgenerator/django/utils/encoding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/feedgenerator/django/utils/encoding.py b/feedgenerator/django/utils/encoding.py
index 02bb65c..c1375f2 100644
--- a/feedgenerator/django/utils/encoding.py
+++ b/feedgenerator/django/utils/encoding.py
@@ -195,7 +195,7 @@ def filepath_to_uri(path):
# given fallback encoding if the encoding is unsupported by python or could
# not be determined. See tickets #10335 and #5846
try:
- DEFAULT_LOCALE_ENCODING = locale.getdefaultlocale()[1] or 'ascii'
+ DEFAULT_LOCALE_ENCODING = locale.getlocale()[1] or 'ascii'
codecs.lookup(DEFAULT_LOCALE_ENCODING)
except:
DEFAULT_LOCALE_ENCODING = 'ascii'