Permalink
Browse files

[1.7.x] Fixed #22773 -- Forced templatize() to return unicode

Backport of daaeb84 from master.
  • Loading branch information...
1 parent 7d38895 commit b236a5581898aca7bff082a6d642bf457278c658 @claudep claudep committed Jun 6, 2014
@@ -544,7 +544,7 @@ def templatize(src, origin=None):
from django.template import (Lexer, TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK,
TOKEN_COMMENT, TRANSLATOR_COMMENT_MARK)
src = force_text(src, settings.FILE_CHARSET)
- out = StringIO()
+ out = StringIO('')
message_context = None
intrans = False
inplural = False

0 comments on commit b236a55

Please sign in to comment.