Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee9e485

Browse files
committed
Closes #14452: remove BOM insertion code.
1 parent aa292f9 commit ee9e485

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/logging/handlers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,6 @@ def emit(self, record):
808808
prio = prio.encode('utf-8')
809809
# Message is a string. Convert to bytes as required by RFC 5424
810810
msg = msg.encode('utf-8')
811-
if codecs:
812-
msg = codecs.BOM_UTF8 + msg
813811
msg = prio + msg
814812
try:
815813
if self.unixsocket:

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Core and Builtins
4343
Library
4444
-------
4545

46+
- Issue #14452: SysLogHandler no longer inserts a UTF-8 BOM into the message.
47+
4648
- Issue #13496: Fix potential overflow in bisect.bisect algorithm when applied
4749
to a collection of size > sys.maxsize / 2.
4850

0 commit comments

Comments
 (0)