Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
42ead48d
Commit
42ead48d
authored
Oct 21, 2009
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #7077: logging: SysLogHandler now treats Unicode as per RFC 5424.
parent
ff8c1e5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Lib/logging/handlers.py
Lib/logging/handlers.py
+4
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/logging/handlers.py
View file @
42ead48d
...
...
@@ -779,6 +779,10 @@ class SysLogHandler(logging.Handler):
self
.
encodePriority
(
self
.
facility
,
self
.
mapPriority
(
record
.
levelname
)),
msg
)
#Message is a string. Convert to bytes as required by RFC 5424
msg
=
msg
.
encode
(
'utf-8'
)
if
codecs
:
msg
=
codecs
.
BOM_UTF8
+
msg
try
:
if
self
.
unixsocket
:
try
:
...
...
Misc/NEWS
View file @
42ead48d
...
...
@@ -104,6 +104,8 @@ C-API
Library
-------
- Issue #7077: logging: SysLogHandler now treats Unicode as per RFC 5424.
- Issue #7099: Decimal.is_normal now returns True for numbers with exponent
larger than emax.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment