summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]scripts/build/msgfmt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/msgfmt.py b/scripts/build/msgfmt.py
index 088d905ef9a..deb02ae32b2 100644..100755
--- a/scripts/build/msgfmt.py
+++ b/scripts/build/msgfmt.py
@@ -223,7 +223,7 @@ def make(filename, outfile):
# See whether there is an encoding declaration
if(hdrno > lno):
p = HeaderParser()
- charset = p.parsestr(header).get_content_charset()
+ charset = p.parsestr(str(header)).get_content_charset()
header_attempted = True
if charset:
encoding = charset