| Issue 202: | Filebrowser broken for non-ascii chars | |
| 1 person starred this issue and may be notified of changes. | Back to list |
The filebrowser widget is broken if you navigate to a folder that contains
Files or Folders with a name consisting of non-ascii chars. In this case, I
tried to navigate two levels up, and that folder contains another folder
called "Öffentlich" (created by ubuntu).
Traceback (most recent call last):
File "main.py", line 13, in <module>
runTouchApp(stage)
File "/home/dennda/dev/pymt/pymt/base.py", line 352, in runTouchApp
pymt_window.mainloop()
File "/home/dennda/dev/pymt/pymt/ui/window/win_pygame.py", line 124, in
mainloop
evloop.idle()
File "/home/dennda/dev/pymt/pymt/base.py", line 196, in idle
self.dispatch_input()
File "/home/dennda/dev/pymt/pymt/base.py", line 181, in dispatch_input
self.post_dispatch_input(type=type, touch=touch)
File "/home/dennda/dev/pymt/pymt/base.py", line 151, in post_dispatch_input
wid.dispatch_event('on_touch_up', touch)
File "/home/dennda/dev/pymt/pymt/event.py", line 344, in dispatch_event
if func(*args):
File "/home/dennda/dev/pymt/pymt/ui/widgets/composed/kineticlist.py",
line 425, in on_touch_up
child.dispatch_event('on_touch_down', touch)
File "/home/dennda/dev/pymt/pymt/event.py", line 344, in dispatch_event
if func(*args):
File "/home/dennda/dev/pymt/pymt/ui/widgets/button.py", line 153, in
on_touch_down
self.dispatch_event('on_press', touch)
File "/home/dennda/dev/pymt/pymt/event.py", line 334, in dispatch_event
if handler(*args):
File "/home/dennda/dev/pymt/pymt/utils.py", line 32, in call_fn
return fn(*(cargs + fargs), **d)
File "/home/dennda/dev/pymt/pymt/ui/widgets/composed/filebrowser.py",
line 268, in _on_file_selected
self.path = filename
File "/home/dennda/dev/pymt/pymt/ui/widgets/widget.py", line 389, in
__setattr__
super(MTWidget, self).__setattr__(name, value)
File "/home/dennda/dev/pymt/pymt/ui/widgets/composed/filebrowser.py",
line 258, in _set_path
self.update()
File "/home/dennda/dev/pymt/pymt/ui/widgets/composed/filebrowser.py",
line 231, in update
browser=self, size=self.size
File "/home/dennda/dev/pymt/pymt/ui/widgets/composed/filebrowser.py",
line 87, in __init__
super(MTFileListEntryView, self).__init__(**kwargs)
File "/home/dennda/dev/pymt/pymt/ui/widgets/composed/filebrowser.py",
line 58, in __init__
super(MTFileEntryView, self).__init__(**kwargs)
File "/home/dennda/dev/pymt/pymt/ui/widgets/button.py", line 70, in __init__
self._label = unicode(kwargs.get('label'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0:
ordinal not in range(128)
dennda@lowrah:~/dev/bonetouch$ ls ../..
Bilder Desktop dev Dokumente Downloads examples.desktop Komodo-Edit-5
Musik Öffentlich Videos Vorlagen
Feb 4, 2010
Project Member
#1
txprog
Labels:
Milestone-0.4.1
Jun 1, 2010
(No comment was entered for this change.)
Labels:
Milestone-0.5
Jun 30, 2010
(No comment was entered for this change.)
Status:
Done
Jun 30, 2010
sorry christopher, little bot test :)
Status:
Fixed
Jun 30, 2010
Closed via GitHub: http://github.com/tito/pymt/commit/2bebeacc023878ec6e52cc8a326535232c16e355 label: fix unicode decoding (fixes issue 202 )
Status:
Done
|