We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50cb5ef commit da25f79Copy full SHA for da25f79
roundup/msgfmt.py
@@ -117,6 +117,11 @@ def make(filename, outfile):
117
print >> sys.stderr, msg
118
sys.exit(1)
119
120
+ # remove UTF-8 Byte Order Mark, if any.
121
+ # (UCS2 BOMs are not handled because messages in UCS2 cannot be handled)
122
+ if lines[0].startswith('\xEF\xBB\xBF'):
123
+ lines[0] = lines[0][3:]
124
+
125
section = None
126
fuzzy = 0
127
@@ -215,3 +220,5 @@ def main():
215
220
216
221
if __name__ == '__main__':
217
222
main()
223
224
+# vim: set et sts=4 sw=4 :
0 commit comments