Details
-
Type:
Task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.4
-
Fix Version/s: JRuby 1.6.5, JRuby 1.7.0.pre1
-
Component/s: Extensions
-
Labels:None
-
Environment:any
-
Number of attachments :
Description
Zlib::Inflate accepts MAX_WBITS + 16 (means gzip inflation) and MAX_WBITS + 32 (automatic detection of zip/gzip) as a windowBits value. And Zlib::Deflate accepts MAX_WBITS + 16 (means gzip deflation).
These features are from zlib 1.2.1. CRuby just passes windowBits value to zlib (inflateInit2 and deflateInit2) so it supports the extra features when underlying zlib supports it. You cannot use these features when you compile CRuby with zlib 1.1.X.
I heard that Rack started using this feature. JRuby should also support it even though those features are undocumented at CRuby level.
windowBits, not related to Windows.