Fix test errors on OSX

On OSX, if LC_TIME and LC_CTYPE differs the output of strftime is not properly decoded
in Python 3. This makes sure that the 'utils.DateFormatter' and the related Jinja filter
'strftime' set the same value for LC_TIME and LC_CTYPE while formatting.

Also, '%a' is removed from DEFAULT_DATE_FORMAT in 'custom_locale' tests. OSX and *nix have
different conversions for '%a' ('Jeu' vs 'jeu.') and there is not a feasible way to handle
the difference for tests.
This commit is contained in:
Deniz Turgut 2014-06-26 00:51:45 -04:00
commit 009543b7e4
33 changed files with 137 additions and 130 deletions

View file

@ -40,7 +40,7 @@
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2011-02-17T00:00:00">
Published: jeu. 17 février 2011
Published: 17 février 2011
</abbr>
<address class="vcard author">
@ -63,7 +63,7 @@
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2011-02-17T00:00:00">
Published: jeu. 17 février 2011
Published: 17 février 2011
</abbr>
<address class="vcard author">
@ -86,11 +86,11 @@
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2010-12-02T10:14:00">
Published: jeu. 02 décembre 2010
Published: 02 décembre 2010
</abbr>
<br />
<abbr class="modified" title="2013-11-17T23:29:00">
Updated: dim. 17 novembre 2013
Updated: 17 novembre 2013
</abbr>
<address class="vcard author">
@ -114,7 +114,7 @@ as well as <strong>inline markup</strong>.</p>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2010-10-20T10:14:00">
Published: mer. 20 octobre 2010
Published: 20 octobre 2010
</abbr>
<address class="vcard author">