summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-11 08:34:28 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-11 08:34:28 +0000
commit4aea8baa3551e8bc88dbcbb447c42fbb169cae07 (patch)
treeb081010edbc2f2be61499e52eb5b18770a13ff85
parent151f679354420c3b0885452adfe0de72855ba7ee (diff)
downloadruby-4aea8baa3551e8bc88dbcbb447c42fbb169cae07.tar.gz
ruby-4aea8baa3551e8bc88dbcbb447c42fbb169cae07.tar.xz
ruby-4aea8baa3551e8bc88dbcbb447c42fbb169cae07.zip
* string.c (rb_str_dump): need to extend len for \b.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--string.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a6771897f..fff78d5ff 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 bcd75a229..16939e15f 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;