[Python-checkins] cpython (3.2): Closes #14452: remove BOM insertion code.
vinay.sajip
python-checkins at python.org
Mon Apr 16 15:44:45 CEST 2012
http://hg.python.org/cpython/rev/89ab589f6fa7
changeset: 76346:89ab589f6fa7
branch: 3.2
parent: 76339:f323b37ef6c1
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Mon Apr 16 14:39:53 2012 +0100
summary:
Closes #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
@@ -808,8 +808,6 @@
prio = prio.encode('utf-8')
# Message is a string. Convert to bytes as required by RFC 5424
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
@@ -43,6 +43,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