URL:
<http://gna.org/bugs/?17739>
Summary: Argv is not a unicode string in python 2.x Windows
Project: MyPaint
Submitted by: tumagonx
Submitted on: Tue 15 Feb 2011 01:12:56 AM GMT
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Planned Release: None
Operating System: Windows XP
_______________________________________________________
Details:
This prevent file (with unicode filename) opening through shell association
under Windows.
...
Forwarded from geun-tak jeong via email:
I am Korean users.
Mypaint for Windows has a problem.
File name or path if it contains a 2-byte characters can not read the file
properly.
I spend too much time to find the files are.
Traceback (most recent call last):
File "C:\Program Files (x86)\MyPaint\library.zip\gui\application.py", line
133, at_application_start(*trash=())
else:
self.filehandler.open_file(fn)
File "C:\Program Files (x86)\MyPaint\library.zip\gui\drawwindow.py", line
43, wrapper(self=<gui.filehandling.FileHandler object>,
*args=('C:\\Users\\beroberos\\Desktop\\(Oroboros)wrod-map-illust-edit-bar -
\xba\xb9\xbb\xe7\xba\xbb.ora',), **kwargs={})
try:
func(self, *args, **kwargs)
finally:
File "C:\Program Files (x86)\MyPaint\library.zip\gui\filehandling.py", line
231, open_file(no details)
else:
self.filename = os.path.abspath(filename)
print 'Loaded from', self.filename
File "C:\Program Files (x86)\MyPaint\library.zip\gui\filehandling.py", line
136, set_filename(no details)
self.app.drawWindow.set_title("MyPaint - %s" %
os.path.basename(self.filename))
if self.filename.startswith(self.get_scrap_prefix()):
self.active_scrap_filename = self.filename
UnicodeDecodeError: 'utf8' codec can't decode byte 0xba in position 64:
unexpected code byte
...
Here is what activestate says:
http://code.activestate.com/recipes/572200/
Applying above workaround fix the opening file but cause problem in
gtk.recent_manager_get_default().add_full() when saving:
Traceback (most recent call last):
File "C:\Program Files (x86)\MyPaint\library.zip\gui\filehandling.py", line
311, save_cb(no details)
else:
self.save_file(self.filename)
File "C:\Program Files (x86)\MyPaint\library.zip\gui\drawwindow.py", line
43, wrapper(self=<gui.filehandling.FileHandler object>,
*args=(u'C:\\Users\\beroberos\\Desktop\\\uc0c8
\ud3f4\ub354\\\uc9d1\uc2dc.ora',), **kwargs={})
try:
func(self, *args, **kwargs)
finally:
File "C:\Program Files (x86)\MyPaint\library.zip\gui\filehandling.py", line
253, save_file(no details)
# todo: get mime_type
'mime_type': 'application/octet-stream'
}
RuntimeError: recent_data must reference a 'app_exec' string value
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?17739>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs