Bug 178129

Summary: Special characters need to be escaped in the field names
Product: [Applications] kst Reporter: Michael Vincent <bug.zilla.vynce>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.7.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Michael Vincent 2008-12-19 01:52:46 UTC
Version:           1.7.0 (using KDE 3.5.9)
OS:                Linux
Installed from:    Fedora RPMs

I have a comma separated ASCII file with a header row. Most of the header records contain a < or > symbol. In the "Configure Data Source" dialog, I select "Data Starts at line: 1" and "Read field names from line: 0". I continue the setup and get the data plotted. I then save the .kst file.

When I try to reopen the .kst file, it gives the error "Not a valid kst plot specification file". If I open the .kst file in a text editor, then problem is apparent:

<vector>
  <tag>DS-testdata.log/&lt; 5 kB</tag>
  <provider>DS-testdata.log</provider>
  <filename>testdata.log</filename>
  <field>< 5 kB</field>
  <start>0</start>
  <num>-1</num>
</vector>

The < symbol is correctly converted to an &lt; in the <tag> entry, but it is just a raw < in the <field> entry. If I manually change the < in the field entry to an &lt; the file loads and works correctly.
Comment 1 Andrew Walker 2008-12-19 06:29:15 UTC
SVN commit 898817 by arwalker:

BUG:178129 escape field names when saving to the kst file

 M  +1 -1      kstrmatrix.cpp  
 M  +1 -1      kstrvector.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=898817