From: John Kaurin Date: 2001-05-22T14:11:24+09:00 Subject: [ruby-talk:15523] Re: Tk Bitmaps Ok, I put the patch in. I upgraded to the 1.6.3-1 and forgot, but the same results. The UNIX system is also at 1.6.3 and has the patch, same results. I get the following error message: /cygdrive/c/RUBY/lib/ruby/1.6/tk.rb:887:in '_invoke':format error in bitmap data Assuming tip #21 ("select" Isn't Broken) is in effect, can anyone tell me where I have gone wrong? --- Patched tk.rb Begins Here --- class TclTkIp # from tkencoding.rb by ttate@jaist.ac.jp alias old_eval _eval alias old_invoke _invoke private :old_eval private :old_invoke attr_accessor :encoding def _eval(cmd) if @encoding _fromUTF8(old_eval(_toUTF8(cmd, @encoding)), @encoding) else old_eval(cmd) end end def _invoke(*cmds) if @encoding cmds = cmds.collect{|cmd| _toUTF8(cmd, @encoding)} _fromUTF8(old_invoke(*cmds), @encoding) else old_invoke(*cmds) end end end --- Patched tk.rb Ends Here ---