From: "igrigorik (Ilya Grigorik)" Date: 2012-05-30T14:16:14+09:00 Subject: [ruby-core:45321] [ruby-trunk - Feature #5937] Zlib::Inflate#add_dictionary to pre-supply dictionaries for inflate streams Issue #5937 has been updated by igrigorik (Ilya Grigorik). @naruse: as Eric pointed out in his original ticket (#5929), I do believe this is a bug, as the current API advertises that it can set and use the dictionary, but that is not the case. I've opened a different / new ticket: http://bugs.ruby-lang.org/issues/6516 ---------------------------------------- Feature #5937: Zlib::Inflate#add_dictionary to pre-supply dictionaries for inflate streams https://bugs.ruby-lang.org/issues/5937#change-26902 Author: drbrain (Eric Hodel) Status: Closed Priority: Normal Assignee: Category: ext Target version: 2.0.0 The attached patch allows Zlib::Inflate users to supply dictionaries ahead of time in order to avoid handling the Zlib::NeedDict exception. Multiple dictionaries may be provided. Zlib::Inflate will choose a matching dictionary based on the adler32 checksum of the provided dictionaries. -- http://bugs.ruby-lang.org/