Bug #
1378022, UTF-8 files with a leading BOM crashed the interpreter.
Also bug #
1435487 (dup).
Core and builtins
-----------------
+- Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter.
+
- Patch #1400181, fix unicode string formatting to not use the locale.
This is how string objects work. u'%f' could use , instead of .
for the decimal point. Now both strings and unicode always use periods.
PyMem_DEL(cs);
}
}
+ if (!r) {
+ cs = tok->encoding;
+ if (!cs)
+ cs = "with BOM";
+ PyErr_Format(PyExc_SyntaxError, "encoding problem: %s", cs);
+ }
return r;
}