summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkextlib
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-28 17:27:41 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-28 17:27:41 +0000
commit0c62f8e2e1ff2b3a9f2f8e1c7011b001385345b6 (patch)
tree08409cd67ee21c92a9931071ebe8b172e19a008f /ext/tk/lib/tkextlib
parent178f7f8d43f8d8242d7af38ad504d43250ed7e3f (diff)
downloadruby-0c62f8e2e1ff2b3a9f2f8e1c7011b001385345b6.tar.gz
ruby-0c62f8e2e1ff2b3a9f2f8e1c7011b001385345b6.tar.xz
ruby-0c62f8e2e1ff2b3a9f2f8e1c7011b001385345b6.zip
* ext/tk/lib/tk.rb: forgot to update RELEASE_DATE
* ext/tk/lib/tk.rb, ext/tk/lib/tk/text.rb, ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb: remove adhoc check of Ruby's features (use existence of some classes instead of comparing with RUBY_VERSION) * ext/tk/lib/tk/root.rb, ext/tk/lib/tk/autoload.rb: make TkRoot (Tk::Root) unswitchable * ext/tk/lib/multi-tk.rb: partial bug fix (still not work!!) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib')
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb
index 12fc453e2..2887b6081 100644
--- a/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb
@@ -322,7 +322,7 @@ class Tk::Iwidgets::Scrolledtext
def _ktext_length(txt)
- if RUBY_VERSION < '1.9.0' ### !!!!!!!!!!!!!
+ if TkCore::WITH_ENCODING ### Ruby 1.9 !!!!!!!!!!!!!
return txt.length
end
###########################