diff options
author | murgatroid99 <mlumish@google.com> | 2015-12-08 19:21:11 -0800 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-12-08 19:21:11 -0800 |
commit | a4c2d7dff7f427de81f81de9fd3082198defa273 (patch) | |
tree | 30925714595f5722e9940d0f9feb2221e9a04361 /src | |
parent | 59e5472568fbe5683a3a36bdb68c29870ba123fa (diff) |
Fixed encoding for bytes fields in the ruby interop server
Diffstat (limited to 'src')
-rwxr-xr-x | src/ruby/pb/test/server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ruby/pb/test/server.rb b/src/ruby/pb/test/server.rb index 67877a191f..851e815222 100755 --- a/src/ruby/pb/test/server.rb +++ b/src/ruby/pb/test/server.rb @@ -126,7 +126,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 EnumeratorQueue wraps a Queue yielding the items added to it via each_item. |