logo       

[Bug 109456] New: ASCII datasource truncates field list: msg#00184

kde.kst

Subject: [Bug 109456] New: ASCII datasource truncates field list

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

http://bugs.kde.org/show_bug.cgi?id=109456
Summary: ASCII datasource truncates field list
Product: kst
Version: unspecified
Platform: unspecified
OS/Version: Solaris
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kst kde org
ReportedBy: nicolas.brisset eurocopter com


Version: 1.2.0_devel (using KDE 3.4.0, compiled sources)
Compiler: gcc version 3.4.3
OS: SunOS (sun4u) release 5.8

When loading an ASCII file with field names, if the corresponding line exceeds
1000 characters, the field list is truncated.

I suppose this is linked with the fact that the QString "line" containing field
names is read with file.readline(line, 1000) in AsciiSource::fieldListFor(...).
In the version I wroteinitially, I read the QString "line" with a QTextStream
attached to QFile "file", as the readline() method in that class reads the
complete line, but there may be another/better way.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise