diff options
| author | Noel Peden <[email protected]> | 2022-01-21 10:24:32 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-21 10:24:32 -0800 |
| commit | 9df7ea821ca36d66f15e34f857fb271f4b4dbc43 (patch) | |
| tree | f26b5aaf945e4c1b75c30aa72a00718d859f8c2f /lib | |
| parent | 6702f7e5c4a7494ab5007a0e42bbec2e760bcad3 (diff) | |
| parent | 7f4045fc69683d51c7c3fbd6497cfadba4966484 (diff) | |
| download | caxlsx-9df7ea821ca36d66f15e34f857fb271f4b4dbc43.tar.gz caxlsx-9df7ea821ca36d66f15e34f857fb271f4b4dbc43.zip | |
Merge pull request #120 from DDeBruler/string-encoding
Return output stream in binmode
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/package.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb index d9865a48..1b30c815 100644 --- a/lib/axlsx/package.rb +++ b/lib/axlsx/package.rb @@ -124,7 +124,7 @@ module Axlsx def to_stream(confirm_valid=false) return false unless !confirm_valid || self.validate.empty? Relationship.initialize_ids_cache - zip = write_parts(Zip::OutputStream.new(StringIO.new, true)) + zip = write_parts(Zip::OutputStream.new(StringIO.new.binmode, true)) stream = zip.close_buffer stream.rewind stream |
