Closes #14452: remove BOM insertion code.
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index 198625b..d0e1425 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -850,7 +850,7 @@
prio = prio.encode('utf-8')
# Message is a string. Convert to bytes as required by RFC 5424
msg = msg.encode('utf-8')
- msg = prio + BOM_UTF8 + msg
+ msg = prio + msg
try:
if self.unixsocket:
try:
diff --git a/Misc/NEWS b/Misc/NEWS
index 97ee354..4293a1c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -36,6 +36,8 @@
Library
-------
+- Issue #14452: SysLogHandler no longer inserts a UTF-8 BOM into the message.
+
- Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType.
- Issue #13959: Make imp.reload() always use a module's __loader__ to perform