[Kstars-devel] KDE/kdeedu/kstars/kstars

Jure Repinc jlp at holodeck1.com
Sun Jan 20 14:37:32 CET 2008


On Friday 18 of January 2008 19:15:49 Jason Harris wrote:
> SVN commit 763142 by harris:
>
> I believe this fixes bug #154195, but I NEED someone
> with a non en_US localization to test it!
>
> I used QString::replace() to replae all "." with
> KLocale::decimalSymbol() when parsing data files.
>
> I did this for the Moon, planets, planet orbits (in
> the solar system tool), stars, asteroids, comets, and
> deep-sky objects.  PLMK if I missed something!
>
> BUG: 154195
> CCMAIL: kstars-devel at kde.org

I checked it with Slovenian (sl) locale, which has "," as decimal symbol.

It looks like it didn't help here (tested with Solar system viewer). The lines 
get converted into x, y and z like this:

kstars(15963) PlanetViewer::initPlotObjects: "-6,98033  -29,2803  5,15193"
kstars(15963) PlanetViewer::initPlotObjects: -6 0 0
kstars(15963) PlanetViewer::initPlotObjects: "-4,10681  -30,3042  4,42964"
kstars(15963) PlanetViewer::initPlotObjects: -4 0 0
kstars(15963) PlanetViewer::initPlotObjects: "-1,19876  -31,0746  3,67024"
kstars(15963) PlanetViewer::initPlotObjects: -1 0 0

And the result is a white horizontal line in the viewer.
So it is still better with "." as a decimal symbol. Maybe QTextStream does 
something wrong when it just strips everything after and including the "." 
symbol and leaves only the whole part of it.

-- 
JLP's Blog - http://jlp.holodeck1.com/blog/


More information about the Kstars-devel mailing list