Skip to content

Commit

Permalink
an attempt to fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Oct 28, 2013
1 parent 6fab5c4 commit 4fe02b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nikola/utils.py
Expand Up @@ -689,6 +689,9 @@ def initialize(cls, locales, initial_lang):
for lang in locales:
locale.setlocale(locale.LC_TIME, locales[lang])
loc, encoding = locale.getlocale()
if encoding is None:
locale.setlocale(locale.LC_ALL, locales[lang])
loc, encoding = locale.getlocale()
encodings[lang] = encoding

cls.encodings = encodings
Expand Down

0 comments on commit 4fe02b4

Please sign in to comment.