From: Hidetoshi NAGAI Date: 2008-01-26T12:08:58+09:00 Subject: Re: ruby-1.9.0-0 and Tk From: Christian Surlykke Subject: Re: ruby-1.9.0-0 and Tk Date: Sat, 26 Jan 2008 04:01:30 +0900 Message-ID: <200801252001.29555.christian@surlykke.dk> > That problem has been reported on rubyforge: > > http://rubyforge.org/tracker/index.php?func=detail&aid=16514&group_id=426&atid=1698 > > The bugreport contains a patch. > > You may also wan't to look at #16632 and #16634 which are (somewhat) similar > issues. For #16634, the following is better. Index: ext/tk/lib/tk.rb =================================================================== --- ext/tk/lib/tk.rb (revision 15145) +++ ext/tk/lib/tk.rb (working copy) @@ -935,7 +935,7 @@ def _bindinfo(what, context=nil) if context - tk_call_without_enc(*what+["<#{tk_event_sequence(context)}>"]) .collect {|cmdline| + tk_call_without_enc(*what+["<#{tk_event_sequence(context)}>"]).each_line.collect {|cmdline| =begin if cmdline =~ /^rb_out\S* (c(?:_\d+_)?\d+)\s+(.*)$/ #[Tk_CMDTBL[$1], $2] -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)