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

Watch mode breaks on accented characters #5

Closed
brobsc opened this issue May 22, 2018 · 2 comments
Closed

Watch mode breaks on accented characters #5

brobsc opened this issue May 22, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@brobsc
Copy link
Owner

brobsc commented May 22, 2018

Reproduction:

  1. Log in to tst
  2. Run easy_tst watch
  3. Copy an apparent (4 chars) checkout code that contains an invalid ascii character
Traceback (most recent call last):
  File "/usr/local/bin/easy_tst", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/Users/bruno/easy_tst/bin/easy_tst", line 26, in <module>
    easy_clipboard.watch_mode()
  File "/Users/bruno/easy_tst/easy_tst/easy_clipboard.py", line 37, in watch_mode
    print('Trying to checkout: "{}"'.format(cv))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc1' in position 0: ordinal not in range(128)
@brobsc brobsc added the bug Something isn't working label May 22, 2018
@brobsc
Copy link
Owner Author

brobsc commented May 23, 2018

Also breaks when clipboard content is longer than 4 characters.

Starting watch mode.
Traceback (most recent call last):
  File "/usr/local/bin/easy_tst", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/Users/bruno/easy_tst/bin/easy_tst", line 22, in <module>
    easy_clipboard.watch_mode()
  File "/Users/bruno/easy_tst/easy_tst/easy_clipboard.py", line 43, in watch_mode
    print('Trying to checkout: "{}"'.format(cv))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 88-89: ordinal not in range(128)

@brobsc
Copy link
Owner Author

brobsc commented May 23, 2018

Tracked on #10 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant