Closes #14452: remove BOM insertion code.

This commit is contained in:
Vinay Sajip 2012-04-16 14:39:53 +01:00
parent aa292f91bb
commit ee9e485c21
2 changed files with 2 additions and 2 deletions

View File

@ -808,8 +808,6 @@ class SysLogHandler(logging.Handler):
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:

View File

@ -43,6 +43,8 @@ Core and Builtins
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.