summaryrefslogtreecommitdiffstats
path: root/ext/tk/sample/encstr_usage.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-30 14:50:55 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-30 14:50:55 +0000
commit8c20f66c485649560ed6082233dbe03cdcdaf7a3 (patch)
treec2da11a0d90c4625c04880075baa333a44835aae /ext/tk/sample/encstr_usage.rb
parent2236e5982240d81789400d045a4d8423eb33d090 (diff)
downloadruby-8c20f66c485649560ed6082233dbe03cdcdaf7a3.tar.gz
ruby-8c20f66c485649560ed6082233dbe03cdcdaf7a3.tar.xz
ruby-8c20f66c485649560ed6082233dbe03cdcdaf7a3.zip
* proc.c (proc_dup): should copy is_lambda attribute as well.
[ruby-talk:296244] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/encstr_usage.rb')
-rw-r--r--ext/tk/sample/encstr_usage.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/tk/sample/encstr_usage.rb b/ext/tk/sample/encstr_usage.rb
index b22c2504a..4285ec861 100644
--- a/ext/tk/sample/encstr_usage.rb
+++ b/ext/tk/sample/encstr_usage.rb
@@ -11,7 +11,7 @@ t1 = TkText.new(:height=>5).pack
t2 = TkText.new(:height=>5).pack
t3 = TkText.new(:height=>5).pack
-src_str = IO.readlines(File.join(File.dirname(__FILE__),'iso2022-kr.txt')).join
+src_str = IO.readlines('iso2022-kr.txt').join
t1.insert('end',
"use neither Tk::EncodedString class nor Tk.encoding= method\n\n")
@@ -23,8 +23,7 @@ t2.insert('end',
t2.insert('end', enc_str)
Tk.encoding = 'iso2022-kr'
-t3.insert('end', "use Tk.encoding = 'iso2022-kr' (Tk.force_default_encoding? == #{Tk.force_default_encoding?})\n\n")
-
+t3.insert('end', "use Tk.encoding = 'iso2022-kr'\n\n")
t3.insert('end', src_str)
Tk.mainloop