| Summary: | " in .autotools are not escaped as " | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Jon Beniston <jon> | ||||
| Component: | Autotools | Assignee: | Jeff Johnston <jjohnstn> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | unspecified | ||||||
| Target Milestone: | 0.6 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
I forgot to say that this causes the settings to be lost when you try to reopen a project: [Fatal Error] .autotools:4:46: Element type "option" must be followed by either attribute specifications, ">" or "/>". org.xml.sax.SAXParseException: Element type "option" must be followed by either attribute specifications, ">" or "/>". at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at org.eclipse.linuxtools.internal.cdt.autotools.core.configure.AutotoolsConfigurationManager.getSavedConfigs(AutotoolsConfigurationManager.java:185) Created attachment 170103 [details]
Patch to escape characters &'"<>
(In reply to comment #2) > Created an attachment (id=170103) [details] > Patch to escape characters &'"<> Thanks Jon. Patch applied to trunk. |
Build Identifier: M20090917-0800 If I set the configure command to something like: CC="gcc -xyx" configure Then this is stored in .autotools as: <option id="configure" value="CC="gcc -xyx" configure"/> Which is not valid XML. The quotes probably need to be escaped, something like: <option id="configure" value="CC="gcc -xyx" configure"/> Other characters that need escaping include: " " ' ' < < > > & & Reproducible: Always