Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@2372 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
commit d60db5020589825949720b70242a62920f7c794c 1 parent bd851bc
@olabini olabini authored
Showing with 4 additions and 0 deletions.
  1. +2 −0  src/org/jruby/RubyString.java
  2. +2 −0  test/testString.rb
View
2  src/org/jruby/RubyString.java
@@ -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
2  test/testString.rb
@@ -437,3 +437,5 @@ class StringExt < String
test_equal("foa3VCPbMb8XQ", "foobar".crypt("foo"))
+test_equal("\"\\b\"","\x08".inspect)
+
Please sign in to comment.
Something went wrong with that request. Please try again.