We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
less -R
I get an UnicodeEncodeError when I use colout with less -R. When I use less without options or just don't use less at all, everything goes fine:
less
$ cat svn-diff.txt | colout -s diff | less $ cat svn-diff.txt | colout -s diff
But if I add -R option so that ascii escape sequences wouldn't be striped, I get this:
-R
$ cat svn-diff.txt | colout -s diff | less -R Index: generate_fountain.py Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/lib/python2.7/dist-packages/colout/colout.py", line 862, in <module> write_all( as_all, sys.stdin, sys.stdout, highlight, lexer, formatter ) File "/usr/local/lib/python2.7/dist-packages/colout/colout.py", line 729, in write_all map_write( stream_in, stream_out, function, *args ) File "/usr/local/lib/python2.7/dist-packages/colout/colout.py", line 574, in map_write write( function(item, *args), stream_out ) File "/usr/local/lib/python2.7/dist-packages/colout/colout.py", line 545, in write stream.write(colored) UnicodeEncodeError: 'ascii' codec can't encode character u'\u0412' in position 16: ordinal not in range(128) =================================================================== --- generate_fountain.py (revision 1294) +++ generate_fountain.py (working copy) @@ -5,7 +5,7 @@
svn-diff.txt contains several non-ascii characters.
The text was updated successfully, but these errors were encountered:
Most probably related to #85, fixed by e9f0bff, please check.
Sorry, something went wrong.
No branches or pull requests
I get an UnicodeEncodeError when I use colout with
less -R
. When I useless
without options or just don't useless
at all, everything goes fine:But if I add
-R
option so that ascii escape sequences wouldn't be striped, I get this:svn-diff.txt contains several non-ascii characters.
The text was updated successfully, but these errors were encountered: