[Kst] Strange problem with datasources

Brisset, Nicolas Nicolas.Brisset at eurocopter.com
Wed Apr 26 18:54:40 CEST 2006

Hi everybody !

I have a strange problem with a CDF file being picked up by the ASCII
datasource, which can't read it of course... I have tried increasing the
value returned by understands_cdf to 100 instead of 76, but it did not
help and I ended up putting traces in both understands_cdf and
understands_ascii functions, and here is what I get:

kmdi: Switch to tab page mode complete
kst: Dialogs updated in 0ms
kst: ASCII: understands() = 1
kst: Wrong endianness => I will convert automatically !
kst: CDF: understands() = 100
kst: ASCII: understands() = 20
kst: ASCII: understands() = 20

Now, if someone could tell me why the data wizard recognizes this file
as ASCII instead of CDF even though the values returned by
understands_xxx() Indicate the opposite, I'd be happy ! As it stands, I
just can't read that particular file, while other CDF files work well.
Note that understands_cdf() just looks at the file extension, so
difference in contents shouldn't even matter to it (while it could
change something for ASCII). I'm puzzled... 


More information about the Kst mailing list