Permalink
Browse files

Fix for JRUBY-203 (inspect not correct for ascii 8)

git-svn-id: http://svn.codehaus.org/jruby/trunk@2372 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent b3a9de6 commit 9933d4efdc6e29f439f595a697eac955fd5e4559 @olabini olabini committed Oct 23, 2006
Showing with 4 additions and 0 deletions.
  1. +2 −0 jruby/src/org/jruby/RubyString.java
  2. +2 −0 jruby/test/testString.rb
@@ -470,6 +470,8 @@ private RubyString inspect(boolean dump) {
sb.append('\\').append('v');
} else if (c == '\u0007') {
sb.append('\\').append('a');
+ } else if (c == '\u0008') {
+ sb.append('\\').append('b');
} else if (c == '\u001B') {
sb.append('\\').append('e');
} else {
View
@@ -437,3 +437,5 @@ class StringExt < String
test_equal("foa3VCPbMb8XQ", "foobar".crypt("foo"))
+test_equal("\"\\b\"","\x08".inspect)
+

0 comments on commit 9933d4e

Please sign in to comment.