diff options
author | Adrian Sampson <adrian@radbox.org> | 2023-04-07 12:19:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 12:19:19 -0700 |
commit | 6955c53349a5bfa126f957e96c05917c9beac732 (patch) | |
tree | 7ef00bc96aad7467428b083e5e622d120c13ebe7 | |
parent | 8705457d24a86232f043baff8e1f8ae4b1486bc3 (diff) | |
parent | 09de7909ce129112f5aa75167aec51709f727f02 (diff) |
Merge pull request #4730 from elyang0214/master
Enforced utf-8 encoding on imported files
-rwxr-xr-x | beets/ui/commands.py | 2 | ||||
-rw-r--r-- | docs/changelog.rst | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 6c8e25b85..68cc7b635 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -958,7 +958,7 @@ def import_files(lib, paths, query): if config['import']['log'].get() is not None: logpath = syspath(config['import']['log'].as_filename()) try: - loghandler = logging.FileHandler(logpath) + loghandler = logging.FileHandler(logpath, encoding='utf-8') except OSError: raise ui.UserError("could not open log file for writing: " "{}".format(displayable_path(logpath))) diff --git a/docs/changelog.rst b/docs/changelog.rst index 568d6022b..39cd8fa2d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,6 +11,8 @@ for Python 3.6). New features: +* --from-logfile now parses log files using a UTF-8 encoding in `beets/beets/ui/commands.py`. + :bug:`4693` * Added additional error handling for `spotify` plugin. :bug:`4686` * We now import the remixer field from Musicbrainz into the library. |