In OpenDocuement file, points are saved with "," instead of "." in e.g. french locale

Bug #43887 reported by Nicolas Arnaud-Cormos
10
Affects Status Importance Assigned to Milestone
koffice
Fix Released
Medium
koffice (Ubuntu)
Fix Released
Medium
Raphaël Pinson

Bug Description

Binary package hint: koffice

With Kpresenter, when I saved a presentation, number are saved with "," instead of "." in the OpenDocument file (XML file).

Sea this bug : http://bugs.kde.org/show_bug.cgi?id=126990

The problem is that the presentation is messy under OpenOffice or KPresenter with us locale, which is really bad for OpenDocument.

The fix is really simple...

Revision history for this message
Nicolas Arnaud-Cormos (nikikko) wrote :

Just a note, as I understand the fix, it seems to be present in all koffice applications.

Luka Renko (lure)
Changed in koffice:
status: Unconfirmed → In Progress
Luka Renko (lure)
Changed in koffice:
assignee: nobody → lure
Revision history for this message
Luka Renko (lure) wrote :

I have backported this fix from 1.5.1 branch, but I can not confirm that it fixes the problem: I can reproduce the initial problem, but with fixed version, the problem is still there.

Steps I used for testing:
- New empty presentation
- View -> Slide Master
- Insert -> Picture
- drop it anywhere on the slide
- Save

After doing this, the image does not have the rectangle around, but when I reload it, it gets rectangle (1pt).
Is this what you are seing (and the steps match what you are doing)?

Revision history for this message
Nicolas Arnaud-Cormos (nikikko) wrote :

Sorry, the description of the bug under kde bugs is not good (it was an other bug at the start, which is fix in KOffice 1.5.1).

The main problem of this bug is the locale problem. If you want to test :
1) export LANG=fr_FR.UTF-8 && kpresenter
2) Add some text, picture...
3) save the file

If you tried to save it in uncompressed OpenDocument, open the file content.xml, there are some line like this :
  ...svg:width="566,932pt"...
You can see a "," instead of ".".

Now, if you tried to open the file under kpresenter with english locale, or under OpenOffice Impress, the slides are messy.

If you have backported the fix, tried to create a slide with the french locale and save it. It shouldn't be messy under OpenOffice Impress... but the border bug is still here (it's not a so big problem).

The big deals with this bug is that it really breaks the compatibility between application (the slide is unusable under OpenOffice).

Revision history for this message
Luka Renko (lure) wrote :

OK, confirmed that it fixes. Thanks for instructions (did not check KDE bug enough). Will request upload today.

Changed in koffice:
status: In Progress → Fix Committed
Changed in koffice:
assignee: lure → raphink
status: Fix Committed → Fix Released
Changed in koffice:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.