aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-03-22 04:13:05 +0000
committerRichard M. Stallman <[email protected]>1997-03-22 04:13:05 +0000
commite837058bc33ac4055f8456f71081692734217d20 (patch)
tree7e9c0394db9d94ba20808064f866b14766522c56
parent375ff4f1e31fc51c2e3e27b94a383fb6e2f2d813 (diff)
(print): Generate a backslash in \2e10.
-rw-r--r--src/print.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c
index f592f4a769..57f6ffdf82 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1018,7 +1018,9 @@ print (obj, printcharfun, escapeflag)
confusing = 0;
else
{
- while (p != end && *p >= '0' && *p <= '9')
+ while (p != end && ((*p >= '0' && *p <= '9')
+ /* Needed for \2e10. */
+ || *p == 'e'))
p++;
confusing = (end == p);
}