aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--string.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a6771897fe..fff78d5ff5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jul 11 17:28:08 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * string.c (rb_str_dump): need to extend len for \b.
+
Tue Jul 11 15:29:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* bignum.c (rb_int2big): use SIGNED_VALUE. [ruby-dev:29019]
diff --git a/string.c b/string.c
index bcd75a229a..16939e15f6 100644
--- a/string.c
+++ b/string.c
@@ -2497,7 +2497,7 @@ rb_str_dump(VALUE str)
case '"': case '\\':
case '\n': case '\r':
case '\t': case '\f':
- case '\013': case '\007': case '\033':
+ case '\013': case '\010': case '\007': case '\033':
len += 2;
break;