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

non-ascii changed line causes diff to crash #3

Closed
glyphobet opened this issue Nov 12, 2012 · 0 comments
Closed

non-ascii changed line causes diff to crash #3

glyphobet opened this issue Nov 12, 2012 · 0 comments
Assignees
Labels

Comments

@glyphobet
Copy link
Owner

A non-ascii changed line causes fragments diff to crash with:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/matt/local/src/fragments/fragments/__main__.py", line 8, in <module>
    _main()
  File "/Users/matt/local/src/fragments/fragments/commands.py", line 412, in _main
    print(str(l))
  File "/Users/matt/local/src/fragments/fragments/color.py", line 25, in __str__
    return '\033[%sm\033[%sm%s\033[0m' % (self.weight, self.color, super(ColoredString, self).__str__())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb4' in position 35: ordinal not in range(128)
@ghost ghost assigned glyphobet Nov 12, 2012
glyphobet added a commit that referenced this issue Nov 13, 2012
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