aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/pb
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-12-08 15:48:21 -0800
committerGravatar murgatroid99 <mlumish@google.com>2015-12-08 15:48:21 -0800
commit59e5472568fbe5683a3a36bdb68c29870ba123fa (patch)
treeda472b5984c25816e460a0bf848002a0da2f5371 /src/ruby/pb
parent248904afadfc8eb987d51abbb7f8ea216f548891 (diff)
Fix encoding for bytes fields in ruby interop client
Diffstat (limited to 'src/ruby/pb')
-rwxr-xr-xsrc/ruby/pb/test/client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ruby/pb/test/client.rb b/src/ruby/pb/test/client.rb
index 30550d6cc0..329e2dc98b 100755
--- a/src/ruby/pb/test/client.rb
+++ b/src/ruby/pb/test/client.rb
@@ -160,7 +160,7 @@ end
# produces a string of null chars (\0) of length l.
def nulls(l)
fail 'requires #{l} to be +ve' if l < 0
- [].pack('x' * l).force_encoding('utf-8')
+ [].pack('x' * l).force_encoding('ascii-8bit')
end
# a PingPongPlayer implements the ping pong bidi test.