Re: [Pharo-users] Problem to use GZIPReadStream

2018-06-07 Thread Serge Stinckwich
On Thu, Jun 7, 2018 at 4:59 PM Guillermo Polito wrote: > Hi Serge, > > What Pharo version are you on? What is your `file` object? If `file` is a > FileReference, you need to know that by default, using `readStream` > provides now an encoded file (to keep backwards compatibility with what > most u

Re: [Pharo-users] Problem to use GZIPReadStream

2018-06-07 Thread Guillermo Polito
Hi Serge, What Pharo version are you on? What is your `file` object? If `file` is a FileReference, you need to know that by default, using `readStream` provides now an encoded file (to keep backwards compatibility with what most users were doing until now). And I think that GZip should just decode

[Pharo-users] Problem to use GZIPReadStream

2018-06-07 Thread Serge Stinckwich
I try to decompress a gzip file like that: compressed := file readStream. stream := (GZipReadStream on: compressed) upToEnd asByteArray readStream. ​but I have the following error: Illegal leading byte for utf-8 encoding ​ -- Serge Stinckwich UMI UMMISCO 209 (SU/IRD/UY1) "Programs must be writte