Python: FootprintEnumerate can't deal with unicode paths
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Unknown
|
Bug Description
import pcbnew
src_plugin = pcbnew.
src_plugin.
results in
/usr/lib/
5641 def footprintPyEnum
5642 """footprintPyE
-> 5643 return _pcbnew.
5644
5645
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)
---
If there is unicode in any .kicad_mod filenames those files are simply ignored by FootprintEnumerate.
---
Application: kicad
Version: no-vcs-
Libraries:
wxWidgets 3.0.2
libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.4.0-104-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.2 (wchar_t,wx containers,
Boost: 1.58.0
Curl: 7.47.0
Compiler: GCC 5.4.0 with C++ ABI 1009
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=ON
description: | updated |
tags: | added: python |
description: | updated |
description: | updated |
Changed in kicad: | |
status: | New → Invalid |
Changed in kicad: | |
importance: | Undecided → Unknown |
status: | Expired → Fix Released |
I thought python unicode strings had to be prepended with a u''. At least that is what the documentation https:/ /docs.python. org/2/howto/ unicode. html would suggest. As long as wxWidgets was built with unicode support, it should accept unicode strings directly. If a wrapper has to written to support this, it could be a while before it's fix as we really do not have a python scripting developer.