Tue 31 Aug 2010 05:32:13 AM UTC, comment #5:
I did some experiments, and yes, it seems to be the case you described. Japanese filenames within a zip file crashes Ranger.
Not knowing exactly how this would happen, afaik zip format already has Unicode support.
Fyi, I'm using the Info-zip compressor. ( http://www.info-zip.org/pub/infozip/Zip.html )
|
Fri 30 Jul 2010 02:58:11 AM UTC, comment #3:
I'm sorry to have replied at a tardy time, but I just found another fact that confuses meself: by creating a file with the same filename at another directory, amazingly Ranger stayed alive, I guess this will remain a puzzle...
|
Thu 01 Jul 2010 07:59:14 PM UTC, comment #1:
The character u'\u66b4' is 暴. Viewing this character in ranger
causes no problems for me, I can even type it in (with shift+middle click.)
So, I'm afraid I'll have to ask for more details:
What are the outputs of these commands?
1. python -c 'print(u"\u66b4")'
2. python -c 'print(u"\u66b4".encode("utf8"))'
3. python -c 'import locale; print(locale.setlocale(locale.LC_ALL, ""))'
|
Thu 01 Jul 2010 10:04:36 AM UTC, original submission:
This happens when I browse through a directory full of Japanese filenames. Ranger crashed immediately, and presents the following:
--
Traceback (most recent call last):
File "/usr/share/ranger/ranger/__main__.py", line 211, in main
fm.loop()
File "/usr/share/ranger/ranger/core/fm.py", line 138, in loop
ui.redraw()
File "/usr/share/ranger/ranger/gui/ui.py", line 213, in redraw
self.draw()
File "/usr/share/ranger/ranger/gui/ui.py", line 234, in draw
DisplayableContainer.draw(self)
File "/usr/share/ranger/ranger/gui/displayable.py", line 268, in draw
displayable.draw()
File "/usr/share/ranger/ranger/gui/widgets/browserview.py", line 100, in draw
DisplayableContainer.draw(self)
File "/usr/share/ranger/ranger/gui/displayable.py", line 268, in draw
displayable.draw()
File "/usr/share/ranger/ranger/gui/widgets/browsercolumn.py", line 138, in draw
self._draw_file()
File "/usr/share/ranger/ranger/gui/widgets/browsercolumn.py", line 166, in _draw_file
Pager.draw(self)
File "/usr/share/ranger/ranger/gui/widgets/pager.py", line 74, in draw
self._draw_line(i, line)
File "/usr/share/ranger/ranger/gui/widgets/pager.py", line 79, in _draw_line
self.addstr(i, 0, line)
File "/usr/share/ranger/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'\u66b4' in position 0: ordinal not in range(128)
|