GoogleCodeArchives / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

Error tracekack with accentuated character in file or directory #440

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a file with accentuated character (eg "é") in name or directory
2. open the file with Editra

What is the expected output? What do you see instead?
Instead of opening the file there is the following error traceback :

Traceback (most recent call last):
  File "Editra.py", line 1090, in <module>
  File "Editra.py", line 986, in Main
  File "Editra.py", line 1064, in _Main
  File "ebmlib\fileutil.pyo", line 58, in WrapURI
  File "ebmlib\fileutil.pyo", line 124, in GetPathFromURI
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 18:
ordinal not in range(128)

What version of the product are you using? On what operating system?
Editra Version: 0.5.25
Operating System: Windows XP (build 2600, Service Pack 3) IN FRENCH
Python Version: 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32
bit (Intel)]
wxPython Version: 2.8.10.1 (msw-unicode)
wxPython Info: (__WXMSW__, wxMSW, unicode, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=ascii  File=mbcs
wxPython Encoding: cp1252
System Architecture: 32bit 
Byte order: little
Frozen: windows_exe

What method of install was your version installed with (Binary/Source)?
Binary

If from source: What version of python and wxPython are you using?

Please provide any additional information below.

Original issue reported on code.google.com by gael.bar...@gmail.com on 16 Dec 2009 at 12:38

GoogleCodeExporter commented 9 years ago
Does this also happen when you open a file from the file dialog (ctrl+o)?

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 16 Dec 2009 at 1:37

GoogleCodeExporter commented 9 years ago
I have no error when using the file dialog neither when using drag and drop.

Best regards,
Gaël

Original comment by gael.bar...@gmail.com on 18 Dec 2009 at 10:18

GoogleCodeExporter commented 9 years ago
Fixed

* properly handle unicode on commandline file names

Original comment by CodyPrec...@gmail.com on 18 Dec 2009 at 2:01