Step export not working when special characters in filename or path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Expired
|
Medium
|
Bug Description
If special characters (german umlauts i.e.) are present in path or filename, step export does not work.
The following error message is printed out:
Warning: 09:59:45: * error reading file: 'C:\Users\
Warning: * Error occurred attempting to read in file
Warning:
Version info:
Application: pcbnew
Version: (5.0.0), release build
Libraries:
wxWidgets 3.0.3
libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.3 (wchar_t,wx containers,
Boost: 1.60.0
OpenCASCADE Community Edition: 6.8.0
Curl: 7.54.1
Compiler: GCC 7.1.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
tags: | added: export step |
Changed in kicad: | |
milestone: | none → 6.0.0-rc1 |
I confirmed that any character greater than 255 will cause the source file name to fail. Fixing this will likely not be trivial since kicad2step is run as an external process and the file name is passed via the command line and kicad2step parses the command line with wxCmdLineParser which hides the command line character parsing in wxAppConsole. Maybe it's time to move all of this inside kicad proper and get rid of kicad2step as an external utility.