Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeEncodeError in operon #1514

Closed
lazka opened this issue Mar 15, 2015 · 4 comments
Closed

UnicodeEncodeError in operon #1514

lazka opened this issue Mar 15, 2015 · 4 comments
Labels

Comments

@lazka
Copy link
Member

lazka commented Mar 15, 2015

Original issue 1514 created by engored on 2015-01-05T15:03:05.000Z:

When I try this: ./operon.py info ./tests/data/silence-44-s.ogg

I get this:

Traceback (most recent call last):
File "./operon.py", line 1103, in <module>
sys.exit(run())
File "./operon.py", line 1077, in run
cmd.execute(argv[offset + 1:])
File "./operon.py", line 120, in execute
self._execute(options, args)
File "./operon.py", line 633, in _execute
tags.append((util.tag(key), str(song(key))))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2236' in position 1: ordinal not in range(128)

Looks like \u2236 comes from https://code.google.com/p/quodlibet/source/browse/quodlibet/quodlibet/util/__init__.py#351

$ hg sum
parent: 7267:d69fa4c26028 tip
cli: --play-file: using the queue to play a random song is no longer needed
branch: default

Strangely enough, TOperonInfo passes.

@lazka
Copy link
Member Author

lazka commented Mar 15, 2015

Comment #1 originally posted by reiter.christoph on 2015-01-05T15:05:00.000Z:

<empty>

@lazka
Copy link
Member Author

lazka commented Mar 15, 2015

Comment #2 originally posted by reiter.christoph on 2015-01-05T17:15:38.000Z:

This issue was closed by revision 0f4e8d0.

@lazka
Copy link
Member Author

lazka commented Mar 15, 2015

Comment #3 originally posted by reiter.christoph on 2015-01-05T17:16:10.000Z:

Thanks. revision 0a62f6e fixed the difference between tests and real execution.

@lazka
Copy link
Member Author

lazka commented Mar 15, 2015

Comment #4 originally posted by reiter.christoph on 2015-01-07T21:36:10.000Z:

This issue was closed by revision 80d4d62.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant