summaryrefslogtreecommitdiffstats
path: root/win/tkWinScrlbr.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-10-03 13:13:31 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-10-03 13:13:31 (GMT)
commit8b4ecc93591895810fb1546a33a8dbd0ac0ab131 (patch)
tree5f8791b7d6fede6856ef719fbb242afe7ff5bc5f /win/tkWinScrlbr.c
parentc235c1b9bd589c5b0d1fa2ca85f45f1521cf188c (diff)
downloadtk-8b4ecc93591895810fb1546a33a8dbd0ac0ab131.zip
tk-8b4ecc93591895810fb1546a33a8dbd0ac0ab131.tar.gz
tk-8b4ecc93591895810fb1546a33a8dbd0ac0ab131.tar.bz2
Convert %g to Tcl_PrintDouble to avoid locale trouble. [Bug 2112563]
Diffstat (limited to 'win/tkWinScrlbr.c')
-rw-r--r--win/tkWinScrlbr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinScrlbr.c b/win/tkWinScrlbr.c
index a6f19bc..0060a9f 100644
--- a/win/tkWinScrlbr.c
+++ b/win/tkWinScrlbr.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinScrlbr.c,v 1.15 2007/12/14 15:56:09 patthoyts Exp $
+ * RCS: @(#) $Id: tkWinScrlbr.c,v 1.16 2008/10/03 13:13:31 dkf Exp $
*/
#include "tkWinInt.h"
@@ -563,7 +563,7 @@ ScrollbarProc(
break;
}
- sprintf(valueString, "%g", pos);
+ Tcl_PrintDouble(NULL, pos, valueString);
Tcl_DStringAppendElement(&cmdString, "moveto");
Tcl_DStringAppendElement(&cmdString, valueString);
}