HBASE-2397 Bytes.toStringBinary escapes printable chars

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@951840 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2010-06-06 08:38:42 +00:00
parent 24ee53c9c4
commit 3181d96ec8
2 changed files with 2 additions and 10 deletions

View File

@ -23,6 +23,7 @@ Release 0.21.0 - Unreleased
HBASE-2541 Remove transactional contrib (Clint Morgan via Stack)
HBASE-2542 Fold stargate contrib into core
HBASE-2565 Remove contrib module from hbase
HBASE-2397 Bytes.toStringBinary escapes printable chars
BUG FIXES
HBASE-1791 Timeout in IndexRecordWriter (Bradford Stephens via Andrew

View File

@ -320,16 +320,7 @@ public class Bytes {
if ( (ch >= '0' && ch <= '9')
|| (ch >= 'A' && ch <= 'Z')
|| (ch >= 'a' && ch <= 'z')
|| ch == ','
|| ch == '_'
|| ch == '-'
|| ch == ':'
|| ch == ' '
|| ch == '<'
|| ch == '>'
|| ch == '='
|| ch == '/'
|| ch == '.') {
|| " `~!@#$%^&*()-_=+[]{}\\|;:'\",.<>/?".indexOf(ch) >= 0 ) {
result.append(first.charAt(i));
} else {
result.append(String.format("\\x%02X", ch));