Bug 158231

Summary: Unicode text label corruption in .kst files
Product: [Applications] kst Reporter: D. V. Wiebe <dvw>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.5.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description D. V. Wiebe 2008-02-22 17:54:59 UTC
Version:           1.5.0 (using KDE 3.5.8)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 4.1.2 
OS:                Linux

kst corrupts unicode data contained by text labels when saving these data to .kst files.  Non-ASCII unicode characters are replaced by a question mark ? (U+003F).

Note: this does not happen for unicode data contained in certain other text fields.  For instance, unicode in axes labels is stored properly to the .kst file.

STEPS TO REPRODUCE:

1. Create a text label (F7) with some non-ASCII unicode characters in it.

2. Save the session to a .kst file.

3. Reload the .kst file.

RESULT:

Non-ASCII characters in the text label have been replaced with question marks.

EXPECTED RESULT:

The unicode text label should contain the unicode string originally specified.
Comment 1 Andrew Walker 2008-02-22 20:32:22 UTC
SVN commit 778189 by arwalker:

BUG:158231 correctly escape all strings that are saved to the kst file. This was not being done correctly in the case of strings held by a Q_PROPERTY. This was a long standing problem.

 M  +5 -1      kstviewobject.cpp  


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