On Friday 11 February 2005 20:51, Chris Cannam wrote:
> On Friday 11 Feb 2005 19:35, Pedro Lopez-Cabanillas wrote:
> > I'm going to check the implementation of QString.toDouble()
>
> Looks like it just uses strtod(3), at least in the Qt 3.2.1 whose
> sources I have here.
Same for Qt 3.1.2; but it changes for Qt 3.3, where a new QLocale class is
used. I didn't test the latter with RG.
> Possibilities that spring to mind:
>
> -- locale is set such that strtod(3) expects ',' for a decimal point
> (but why should it differ between different builds?)
Indeed, this was easy to test. Changing mappings/feta.xml to use a comma
instead the decimal point solves the clef position and line thickness
problems.
NoteFontMap::startElement() scaled hotspot in char:MUSICAL SYMBOL C CLEF
s:0,47 y:0.47
NoteFontMap::startElement() scaled hotspot in char:MUSICAL SYMBOL G CLEF
s:0,64 y:0.64
NoteFontMap::startElement() scaled hotspot in char:MUSICAL SYMBOL F CLEF
s:0,32 y:0.32
Another variation, also working:
NoteFontMap::startElement() scaled hotspot in char:MUSICAL SYMBOL C CLEF
s:47E-2 y:0.47
NoteFontMap::startElement() scaled hotspot in char:MUSICAL SYMBOL G CLEF
s:64E-2 y:0.64
NoteFontMap::startElement() scaled hotspot in char:MUSICAL SYMBOL F CLEF
s:32E-2 y:0.32
I've inserted another debug output at notefont.cpp:110, containing...
cerr << "NoteFontMap::NoteFontMap() decimalSymbol="
<< KGlobal::locale()->decimalSymbol() << endl;
It prints this, with CVS-20050209:
NoteFontMap::NoteFontMap() decimalSymbol=,
And this with CVS-20050119:
NoteFontMap::NoteFontMap() decimalSymbol=,
Which is exactly the expected and matches my es_ES locale. I need to
investigate a bit more, but I'm very tired now. See you tomorrow.
Regards,
Pedro
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel