From daaeb8415823444a9020460cf825efc3fae866a2 Mon Sep 17 00:00:00 2001
From: Claude Paroz <claude@2xlibre.net>
Date: Fri, 6 Jun 2014 08:40:04 +0200
Subject: [PATCH] Fixed #22773 -- Forced templatize() to return unicode

---
 django/utils/translation/trans_real.py   | 2 +-
 tests/i18n/commands/templates/empty.html | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 create mode 100644 tests/i18n/commands/templates/empty.html

diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py
index b94c4e515d..dda2ab54c3 100644
--- a/django/utils/translation/trans_real.py
+++ b/django/utils/translation/trans_real.py
@@ -530,7 +530,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
diff --git a/tests/i18n/commands/templates/empty.html b/tests/i18n/commands/templates/empty.html
new file mode 100644
index 0000000000..e69de29bb2