[Python-checkins] cpython (2.7): Issue #14452: remove BOM insertion code.
vinay.sajip
python-checkins at python.org
Mon Apr 16 15:44:44 CEST 2012
http://hg.python.org/cpython/rev/af46a001d5ec
changeset: 76345:af46a001d5ec
branch: 2.7
parent: 76341:33bc53e0aa9e
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Mon Apr 16 14:38:23 2012 +0100
summary:
Issue #14452: remove BOM insertion code.
files:
Lib/logging/handlers.py | 2 --
Misc/NEWS | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -821,8 +821,6 @@
# Message is a string. Convert to bytes as required by RFC 5424
if type(msg) is unicode:
msg = msg.encode('utf-8')
- if codecs:
- msg = codecs.BOM_UTF8 + msg
msg = prio + msg
try:
if self.unixsocket:
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -48,6 +48,8 @@
Library
-------
+- Issue #14452: SysLogHandler no longer inserts a UTF-8 BOM into the message.
+
- Issue #13496: Fix potential overflow in bisect.bisect algorithm when applied
to a collection of size > sys.maxsize / 2.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list