From 3f2b281eeec85f34fcf0f9f3a42ef3d3e57810fa Mon Sep 17 00:00:00 2001 From: nagai Date: Mon, 12 Jan 2009 17:10:02 +0000 Subject: [PATCH] * ext/tk/lib/tk.rb: use Encoding.find("locale") instaed of Encoding.locale_charmap git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/tk/lib/tk.rb | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 419e6e02aa..1009aa5c32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 13 02:07:38 2009 Hidetoshi NAGAI + + * ext/tk/lib/tk.rb: use Encoding.find("locale") instaed of + Encoding.locale_charmap + Tue Jan 13 00:57:56 2009 Tanaka Akira * ext/socket/socket.c (sock_s_unpack_sockaddr_in): check too short diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 162fe83a3d..85c1e76f83 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -3019,7 +3019,8 @@ if (/^(8\.[1-9]|9\.|[1-9][0-9])/ =~ Tk::TCL_VERSION && !Tk::JAPANIZED_TK) end else ### Ruby 1.9 !!!!!!!!!!!! - loc_enc_obj = (::Encoding.find(::Encoding.locale_charmap) rescue Tk::Encoding::UNKNOWN) + # loc_enc_obj = (::Encoding.find(::Encoding.locale_charmap) rescue Tk::Encoding::UNKNOWN) + loc_enc_obj = ::Encoding.find("locale") ext_enc_obj = ::Encoding.default_external int_enc_obj = ::Encoding.default_internal || ext_enc_obj tksys_enc_name = Tk::Encoding::ENCODING_TABLE.get_name(Tk.encoding_system) @@ -5550,7 +5551,7 @@ TkWidget = TkWindow #Tk.freeze module Tk - RELEASE_DATE = '2009-01-09'.freeze + RELEASE_DATE = '2009-01-13'.freeze autoload :AUTO_PATH, 'tk/variable' autoload :TCL_PACKAGE_PATH, 'tk/variable'