https://bugs.kde.org/show_bug.cgi?id=401894

--- Comment #2 from Alessandro Russo <axel...@yahoo.it> ---
Sorry, I replied to the email but didn't add a comment on bugs.kde.org.
I'll do it now.

Yes, it's set.

I tried to debug a bit the problem.
I wrote the following lines after "bool ok;" (the line 1117 of imdbfetcher.cpp)

      myWarning() << ratingRx.cap(1) <<"\n";
      myWarning() << ratingRx.cap(1).toFloat() <<"\n";

And for the film Mission Impossible Fallot (
https://www.imdb.com/title/tt4912910/?ref_=nv_sr_1 ) I get:

"7,9"
0

I don't know why the number is 7,9 instead of 7.9. When I go directly to the
imdb webpage I see only 7.9
Can this be a locale problem? My locale is set to italian/italy and here the
numbers are written with the comma (7.9 -> 7,9)

For the moment I fixed it with:
      QLocale italian(QLocale::Italian);
      float value = italian.toFloat(ratingRx.cap(1),&ok);

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to