bugranger - Bugs: bug #39397, UnicodeEncodeError: 'ascii' codec...

 
 

bug #39397: UnicodeEncodeError: 'ascii' codec can't encode character u'\u9605' in position 0: ordinal not in range(128)

Submitted by:  Dong Zhu <bluezd>
Submitted on:  Tue 02 Jul 2013 12:26:55 PM UTC  
 
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 02 Jul 2013 12:26:55 PM UTC, original submission:

Ranger crashed when I attempted to open a file. This file was stored in my dropbox sync folder, it might be synchronized from server when the open operation was executed.

$ ranger
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ranger/__main__.py", line 224, in main
fm.loop()
File "/usr/lib/python2.7/site-packages/ranger/core/fm.py", line 137, in loop
ui.redraw()
File "/usr/lib/python2.7/site-packages/ranger/gui/ui.py", line 213, in redraw
self.draw()
File "/usr/lib/python2.7/site-packages/ranger/gui/ui.py", line 234, in draw
DisplayableContainer.draw(self)
File "/usr/lib/python2.7/site-packages/ranger/gui/displayable.py", line 268, in draw
displayable.draw()
File "/usr/lib/python2.7/site-packages/ranger/gui/widgets/browserview.py", line 100, in draw
DisplayableContainer.draw(self)
File "/usr/lib/python2.7/site-packages/ranger/gui/displayable.py", line 268, in draw
displayable.draw()
File "/usr/lib/python2.7/site-packages/ranger/gui/widgets/browsercolumn.py", line 138, in draw
self._draw_file()
File "/usr/lib/python2.7/site-packages/ranger/gui/widgets/browsercolumn.py", line 166, in _draw_file
Pager.draw(self)
File "/usr/lib/python2.7/site-packages/ranger/gui/widgets/pager.py", line 74, in draw
self._draw_line(i, line)
File "/usr/lib/python2.7/site-packages/ranger/gui/widgets/pager.py", line 79, in _draw_line
self.addstr(i, 0, line)
File "/usr/lib/python2.7/site-packages/ranger/gui/curses_shortcuts.py", line 54, in addstr
self.win.addstr(*(ascii_only(obj) for obj in args))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u9605' in position 0: ordinal not in range(128)

Dong Zhu <bluezd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bluezd (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1