xsltproc is not able to handel \ in paths when creating BOM lists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Dear Sir or Madame
Platform: Windows 7
kiCad version: (2015-07-04 BZR 5884, Git c1bbf3e)
xsltproc version: Using libxml 20902, libxslt 10128 and libexslt 817
Problem:
Command line xsltproc -o "%O.csv" "%P/bom_
Cause:
The above line is expanded into
xsltproc -o "G:\Project\24\B Projekt\
This line is not working for xsltproc becosue it can not handle the /, \ issue between running on Microsoft Windows/unix/linux platforms
That is, the windows version of xsltproc can only handle / on a Microsoft Windows platform.
(if the above line is replaced with xsltproc -o "G:/Project/24/B Projekt/
Suggested solution:
It is suggest that KiCad first expand the command line (as it do today) and then, if running on
Microsoft Windows: Replace all \ in the string with /
Unix/Linux: Replace all / in the string with \
In this way the KiCad BOM generation will work on both Microsoft Windows and Unix/Linux platforms regardless on which platform the plugins was originally written on or will be executed on.
Extra:
I will report the issue to xsltproc project as well.
PS
I dont know with directory seperator character OSX is using but it is originaly a Unix distribution
DS
Regards
/Stefan
description: | updated |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Eeh?!? "Unix/Linux: Replace all / in the string with \" why do you want to do that?