diff options
author | murgatroid99 <mlumish@google.com> | 2015-12-08 15:48:21 -0800 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-12-08 15:48:21 -0800 |
commit | 59e5472568fbe5683a3a36bdb68c29870ba123fa (patch) | |
tree | da472b5984c25816e460a0bf848002a0da2f5371 /src/ruby/pb | |
parent | 248904afadfc8eb987d51abbb7f8ea216f548891 (diff) |
Fix encoding for bytes fields in ruby interop client
Diffstat (limited to 'src/ruby/pb')
-rwxr-xr-x | src/ruby/pb/test/client.rb | 2 |
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. |