Skip to content

Commit 4df3eee

Browse files
authored
Merge pull request #3160 from guillep/2975-Problem-when-you-read-an-mcz-pharo7
2975-Problem-when-you-read-an-mcz-pharo7
2 parents 9f17218 + b81b5e4 commit 4df3eee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Compression/ZipArchiveMember.class.st

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,10 @@ ZipArchiveMember >> contentStreamFromEncoding: encodingName [
205205
"Answer my contents as a text stream.
206206
Interpret the raw bytes with given encodingName"
207207

208-
^ (ByteArray new: self uncompressedSize streamContents: [ :stream |
209-
self extractTo: stream ]) decodeWith: encodingName
208+
^ ((ByteArray new: self uncompressedSize streamContents: [ :stream |
209+
self extractTo: stream ])
210+
decodeWith: encodingName)
211+
readStream
210212
]
211213

212214
{ #category : #reading }

0 commit comments

Comments
 (0)