After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 161986 - Can't set margin value when locale has comma as decimal separator
Can't set margin value when locale has comma as decimal separator
Status: RESOLVED FIXED
Product: gnome-print
Classification: Deprecated
Component: docs
unspecified
Other All
: Urgent major
: 2.10
Assigned To: Jody Goldberg
Jody Goldberg
: 165908 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-12-22 14:36 UTC by Emmanuel Pacaud
Modified: 2005-02-10 06:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Emmanuel Pacaud 2004-12-22 14:36:02 UTC
In french locale, where decimal separator is comma (,), user set margin values
are forgotten as soon printing setup dialog is closed.

It doesn't happen when locale is C.
Comment 1 Andreas J. Guelzow 2004-12-22 23:01:18 UTC
It seems to me that the values are not forgotten but remembered in some modified
way...
Comment 2 Emmanuel Pacaud 2005-01-16 23:15:05 UTC
How to replicate:

export LANG=fr_FR.UTF-8
gnumeric
Fichier->Configuration de l'impression
Change Top margin to 10,0
Valider
Fichier->Configuration de l'impression

Top margin displays 0,35 now.
Comment 3 Jody Goldberg 2005-02-10 04:51:10 UTC
*** Bug 165908 has been marked as a duplicate of this bug. ***
Comment 4 Jody Goldberg 2005-02-10 04:55:55 UTC
The problem is that we are using g_ascii_strtod which explicitly ignores locale
to read values generated by printf.  When we read '2,0000 cm' it only reads '2'
then gets irrate when the unit is ',0000 cm'
Comment 5 Jody Goldberg 2005-02-10 06:10:50 UTC
Fixed in CVS