From b81b5e4d73e1880ddec13475e3f19fb6ebb612ad Mon Sep 17 00:00:00 2001 From: Guille Polito Date: Wed, 10 Apr 2019 14:57:56 +0200 Subject: [PATCH] contentStreamFromEncoding: should return a steam and not a string. --- src/Compression/ZipArchiveMember.class.st | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Compression/ZipArchiveMember.class.st b/src/Compression/ZipArchiveMember.class.st index b7aafe146ab..39b032cb229 100644 --- a/src/Compression/ZipArchiveMember.class.st +++ b/src/Compression/ZipArchiveMember.class.st @@ -205,8 +205,10 @@ ZipArchiveMember >> contentStreamFromEncoding: encodingName [ "Answer my contents as a text stream. Interpret the raw bytes with given encodingName" - ^ (ByteArray new: self uncompressedSize streamContents: [ :stream | - self extractTo: stream ]) decodeWith: encodingName + ^ ((ByteArray new: self uncompressedSize streamContents: [ :stream | + self extractTo: stream ]) + decodeWith: encodingName) + readStream ] { #category : #reading }