Non-ascii characters in pathnames (again)

I didn't realize that I was the root of all these non-ascii problems. But now the problems should fixed in svn, although today's nightly build will not work if you have strange characters in your paths.
The code has been checked under Windows as the user Åke Öst. Apparently it is not possible to use scandinavian characters as user names under Linux; a user called Åke would have the home directory /home/ake.
Here is the debug prints when Åke is exporting a Collada file. MHX is similar but longer.
Here are some other issues which arose when starting MH and exporting an obj as Åke Öst.
1.
2.
3.
The code has been checked under Windows as the user Åke Öst. Apparently it is not possible to use scandinavian characters as user names under Linux; a user called Åke would have the home directory /home/ake.
Here is the debug prints when Åke is exporting a Collada file. MHX is similar but longer.
- Code: Select all
Writing Collada file C:\Users\\xc5 ke \xd6 st\Documents\makehuman\exports\foo.dae
*** Cannot open C:\Users\Åke Öst\makehuman\proxy.cfg
*** Cannot open C:\proxy.cfg
Using config file C:\Users\Åke Öst\Downloads\makehuman\proxy.cfg
Proxy configuration: Use ['Obj', 'Mhx', 'Dae']
('Proxy', True, True, True, ('./data/templates/Rorkimaru.proxy', 'Proxy', 2))
('Clothes', True, True, True, ('./data/templates/sweater.mhclo', 'Clothes', 4))
('Clothes', True, True, True, ('./data/templates/jeans.mhclo', 'Clothes', 4))
WARNING: Collada export with several meshes. Ignored Rorkimaru
Wrote Collada file in 2.21032 s: C:\Users\\xc5 ke \xd6 st\Documents\makehuman\exports\foo.dae
Here are some other issues which arose when starting MH and exporting an obj as Åke Öst.
1.
- Code: Select all
Unable to open data/targets/expression/female_young/neutral_female_young_hopefull.target
Expression loaded
2.
- Code: Select all
Could not load rendering_aqsis
'ascii' codec can't encode character u'\xc5' in position 77: ordinal not in range(128)
3.
- Code: Select all
Traceback (most recent call last):
File "./core\module3d.py", line 1424, in mouseButtonUp
self.application.mouseUp(button, x, y)
File "./core\gui3d.py", line 528, in mouseUp
self.mouseDownObject.callEvent('onClicked', event)
File "./core\events3d.py", line 93, in callEvent
getattr(self, eventType)(event)
File "./core\gui3d.py", line 146, in onClicked
self.view.callEvent('onClicked', event)
File "./core\events3d.py", line 93, in callEvent
getattr(self, eventType)(event)
File "./core\gui3d.py", line 1173, in onClicked
self.onFileSelected(self.edit.getText())
File "./apps\gui\guifiles.py", line 213, in onFileSelected
mh2obj.exportObj(self.app.scene3d.selectedHuman.meshData, os.path.join(exportPath, filename + ".obj"), 'data/3dobjs/base.obj', self.exportGroups.selected)
File "./apps\mh2\mh2obj.py", line 55, in exportObj
f.write('mtllib ' + filename + '.mtl\n')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc5' in position 16: ordinal not in range(128)