[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (fd5399c67b988f2f7c9d1a0b4ab7c13bc2e95158)



The branch, master has been updated
       via  fd5399c67b988f2f7c9d1a0b4ab7c13bc2e95158 (commit)
      from  a2bcea72cf4161eb928582a28fac3443309d8050 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/hid/gtk/gtkhid-main.c |    2 +-
 src/hid/lesstif/main.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


=================
 Commit Messages
=================

commit fd5399c67b988f2f7c9d1a0b4ab7c13bc2e95158
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    De-localize zoom parsing
    
    The values used for Zoom() were being parsed with strtod(), which
    switches between '.' and ',' depending on locale.  Switch to
    g_ascii_strtod() which always uses '.' and thus always matches our
    actions.
    
    Note: I didn't change the command line parsing, because I didn't think
    we should impose '.'-centric syntax on other locales.

:100644 100644 e0cfbc9... 9b239e1... M	src/hid/gtk/gtkhid-main.c
:100644 100644 1885761... a4b34ee... M	src/hid/lesstif/main.c

=========
 Changes
=========

commit fd5399c67b988f2f7c9d1a0b4ab7c13bc2e95158
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    De-localize zoom parsing
    
    The values used for Zoom() were being parsed with strtod(), which
    switches between '.' and ',' depending on locale.  Switch to
    g_ascii_strtod() which always uses '.' and thus always matches our
    actions.
    
    Note: I didn't change the command line parsing, because I didn't think
    we should impose '.'-centric syntax on other locales.

diff --git a/src/hid/gtk/gtkhid-main.c b/src/hid/gtk/gtkhid-main.c
index e0cfbc9..9b239e1 100644
--- a/src/hid/gtk/gtkhid-main.c
+++ b/src/hid/gtk/gtkhid-main.c
@@ -217,7 +217,7 @@ Zoom (int argc, char **argv, Coord x, Coord y)
   vp = argv[0];
   if (*vp == '+' || *vp == '-' || *vp == '=')
     vp++;
-  v = strtod (vp, 0);
+  v = g_ascii_strtod (vp, 0);
   if (v <= 0)
     return 1;
   switch (argv[0][0])
diff --git a/src/hid/lesstif/main.c b/src/hid/lesstif/main.c
index 1885761..a4b34ee 100644
--- a/src/hid/lesstif/main.c
+++ b/src/hid/lesstif/main.c
@@ -515,7 +515,7 @@ ZoomAction (int argc, char **argv, Coord x, Coord y)
     }
   if (*vp == '+' || *vp == '-' || *vp == '=')
     vp++;
-  v = strtod (vp, 0);
+  v = g_ascii_strtod (vp, 0);
   if (v <= 0)
     return 1;
   switch (argv[0][0])




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs