diff --git a/beets/ui/commands.py b/beets/ui/commands.py index ea70b5170..2d8d4a8a9 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -1494,9 +1494,9 @@ def config_edit(): path = config.user_config_path() if 'EDITOR' in os.environ: - editor = os.environ['EDITOR'] + editor = os.environ['EDITOR'].encode('utf8') try: - editor = shlex.split(editor) + editor = [e.decode('utf8') for e in shlex.split(editor)] except ValueError: # Malformed shell tokens. editor = [editor] args = editor + [path]