Fix encoding for bytes fields in ruby interop client

pull/4345/head
murgatroid99 9 years ago
parent 248904afad
commit 59e5472568
  1. 2
      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.

Loading…
Cancel
Save