Bug 178129 - Special characters need to be escaped in the field names
Summary: Special characters need to be escaped in the field names
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.7.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-19 01:52 UTC by Michael Vincent
Modified: 2008-12-19 06:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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