aboutsummaryrefslogtreecommitdiffstats
path: root/missing_d/strtod.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 14:40:49 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 14:40:49 +0300
commit85c0d5edb781c9f31b79e48452b1ca68643f41de (patch)
tree14efbc59b30cdd626a208d6391f3ed226387054e /missing_d/strtod.c
parent6cc7d587a710606d3fe52222707739c7cc1b8651 (diff)
downloadegawk-85c0d5edb781c9f31b79e48452b1ca68643f41de.tar.gz
egawk-85c0d5edb781c9f31b79e48452b1ca68643f41de.tar.bz2
egawk-85c0d5edb781c9f31b79e48452b1ca68643f41de.zip
Move to gawk-3.1.4.
Diffstat (limited to 'missing_d/strtod.c')
-rw-r--r--missing_d/strtod.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/missing_d/strtod.c b/missing_d/strtod.c
index e33a5b5e..fc97b8d8 100644
--- a/missing_d/strtod.c
+++ b/missing_d/strtod.c
@@ -28,6 +28,8 @@
* doesn't look like we failed. Sigh.
*
* Xmass 2002. Fix a bug in ptr determination, eg. for "0e0".
+ *
+ * Spring 2004. Update for I18N. Oh joy.
*/
#if 0
@@ -66,7 +68,15 @@ register const char **ptr;
dig++;
}
- if (*s == '.') {
+ if (
+#if ENABLE_NLS && defined(HAVE_LOCALE_H)
+ loc.decimal_point != NULL
+ ? *s == loc.decimal_point[0]
+ : *s == '.'
+#else
+ *s == '.'
+#endif
+ ) {
s++;
while (*s == '0') {
s++;