Permalink
Browse files

Ensuring that getBytes() always uses ASCII

  • Loading branch information...
djspiewak committed Apr 2, 2008
1 parent e8f6d29 commit 5fe06405f4d2a6c594991d675ebff6f176f68238
@@ -20,6 +20,6 @@ public IntegerType(long value) {
@Override
protected void writeValue(OutputStream os) throws IOException {
os.write(Long.toString(value).getBytes());
os.write(Long.toString(value).getBytes("US-ASCII"));
}
}
@@ -25,7 +25,7 @@ protected void writePrefix(OutputStream os) throws IOException {
}
protected final void writeLength(OutputStream os) throws IOException {
os.write(Long.toString(getLength()).getBytes());
os.write(Long.toString(getLength()).getBytes("US-ASCII"));
os.write(':');
}

0 comments on commit 5fe0640

Please sign in to comment.