[bug] Bogus deflate/inflate init values

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug] Bogus deflate/inflate init values

Robin Redeker-2
Issue status update for
http://smalltalk.gnu.org/node/118
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/118

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Bindings (other)
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  elmex
 Updated by:   elmex
 Status:       patch
 Attachment:   http://smalltalk.gnu.org/files/issues/gst-zlib.patch (526 bytes)

Hi,

i've experienced interoperability problems with
gst zlib and other zlib implementations (eg. Compress::Zlib perl
module).

It seemed to came down to the window size init value
of -15, which seemed incorrect. The documentation
of zlib recommends a (default) value of 15.

The attached patch should fix that.




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] Bogus deflate/inflate init values

Paolo Bonzini
Issue status update for
http://smalltalk.gnu.org/project/issue/118
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/118

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Bindings (other)
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  elmex
 Updated by:   bonzinip
-Status:       patch
+Status:       invalid

If you want a window size of 15, use InflateStream.  -15 is used by
RawInflateStream, which is the class you want to use if for example
you're decompressing ZIP files.




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] Bogus deflate/inflate init values

Robin Redeker-2
In reply to this post by Robin Redeker-2
Issue status update for
http://smalltalk.gnu.org/project/issue/118
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/118

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Bindings (other)
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  elmex
 Updated by:   elmex
 Status:       invalid

Ok, never mind then. Sorry for my confusion, the patch did indeed break
even interop with itself :)




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk