Bug 158231 - Unicode text label corruption in .kst files
Summary: Unicode text label corruption in .kst files
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.5.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-22 17:54 UTC by D. V. Wiebe
Modified: 2008-02-22 20:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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