Skip to content

Commit b4e59e9

Browse files
committed
Closes #14452: remove BOM insertion code.
2 parents b206a80 + ee9e485 commit b4e59e9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/logging/handlers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ def emit(self, record):
850850
prio = prio.encode('utf-8')
851851
# Message is a string. Convert to bytes as required by RFC 5424
852852
msg = msg.encode('utf-8')
853-
msg = prio + BOM_UTF8 + msg
853+
msg = prio + msg
854854
try:
855855
if self.unixsocket:
856856
try:

Misc/NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Core and Builtins
3636
Library
3737
-------
3838

39+
- Issue #14452: SysLogHandler no longer inserts a UTF-8 BOM into the message.
40+
3941
- Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType.
4042

4143
- Issue #13959: Make imp.reload() always use a module's __loader__ to perform

0 commit comments

Comments
 (0)