to demo utf8, emoji logging without exception #1093
No reviewers
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-03#1093
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "patch-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
to demo utf8, emoji logging without exception
as requested by Peter via BM recently
Please rename to something else than "emoji", e.g. something with utf8, unicode or encoding.
Please get rid of the logger.warning or replace it with something more neutral, like "logger encoding reset", and it should be .info or .debug, not .warning.
The commit is against the master branch, please rebase against v0.6, other than that it looks fine.
works nicely here. no other changes needed in logging functions calls. handy, huh?
I tested it and it works if your locale is utf-8. If it isn't and the error message has non-ascii characters, it still is broken. However I figured out how to fix both.