#46 DrPython Open Dialog buggy

closed-fixed
nobody
None
7
2005-02-04
2005-01-30
Marek Kubica
No

When I try to Open a FIle using the DrPython Open
DIalog it fails with:

Traceback (most recent call last):
File "c:\Programme\drpython\drpython.py", line 2036,
in OnOpen
dlg = drFileDialog.FileDialog(self, "Open",
self.prefs.wildcard, MultipleSelection=True,
ShowRecentFiles=True)
File "c:\Programme\drpython\drFileDialog.py", line
977, in FileDialog
return drFileDialog(parent, title, wildcard, point,
size, IsASaveDialog, MultipleSelection, ShowRecentFiles)
File "c:\Programme\drpython\drFileDialog.py", line
453, in __init__

self.lstFiles.SetDirectoryTo(self.parent.ddirectory,
self.wildcards[self.currentextension])
File "c:\Programme\drpython\drFileDialog.py", line
158, in SetDirectoryTo
self.InsertStringItem(i, item)
File
"C:\Programme\Python\Lib\site-packages\wx-2.5.3-msw-unicode\wx\_controls.
py", line 4581, in InsertStringItem
return _controls_.ListCtrl_InsertStringItem(*args,
**kwargs)
UnicodeDecodeError: 'ascii' codec can't decode byte
0xfc in position 8: ordinal
not in range(128)

As you can see from the traceback I'm using wxPython
2.5.3.1 (Unicode), on Windows XP, with Python 2.4 and
DrPython 3.9.5. The wx File Open DIalog works for me.

Discussion

    • priority: 5 --> 7
     
  • Logged In: YES
    user_id=796750

    I will fiddle about, and see what I can do.

     
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=796750

    Strange, this seems to only be a problem on windows.

    The gtk2 port on linux handles this fine.

    Oh well, it is a simple enough fix. (The default encoding bit).