From 33a031bcbb66d412691c5dcbb5060841d18f31b3 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 22 Nov 2002 09:14:24 +0000 Subject: * file.c (rb_find_file_ext): should not terminate searching with empty path, just ignore. * dir.c: remove inclusion. * compar.c (cmp_eq,cmp_gt,cmp_ge,cmp_lt,cmp_le): check using rb_cmpint(). * error.c (init_syserr): remove sys_nerr dependency. * numeric.c (num_cmp): added to satisfy Comparable assumption. * eval.c (rb_add_method): "initialize" should be public if it is a singleton method. * regex.c (re_match): avoid dereferencing if size == 0. (ruby-bugs-ja:PR#360) * time.c (time_cmp): should return nil if an operand is not a number nor time. (ruby-bugs-ja:PR#359) * file.c (rb_stat_cmp): should return nil if an operand is not File::Stat. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/locale.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/irb') diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb index 0e36359f5..dad6b2f07 100644 --- a/lib/irb/locale.rb +++ b/lib/irb/locale.rb @@ -27,20 +27,20 @@ module IRB attr_reader :lang + @@LC2KCONV = { + # "ja" => Kconv::JIS, + # "ja_JP" => Kconv::JIS, + "ja_JP.ujis" => Kconv::EUC, + "ja_JP.euc" => Kconv::EUC, + "ja_JP.eucJP" => Kconv::EUC, + "ja_JP.sjis" => Kconv::SJIS, + "ja_JP.SJIS" => Kconv::SJIS, + } + def String(mes) mes = super(mes) case @lang when /^ja/ - @@LC2KCONV = { - # "ja" => Kconv::JIS, - # "ja_JP" => Kconv::JIS, - "ja_JP.ujis" => Kconv::EUC, - "ja_JP.euc" => Kconv::EUC, - "ja_JP.eucJP" => Kconv::EUC, - "ja_JP.sjis" => Kconv::SJIS, - "ja_JP.SJIS" => Kconv::SJIS, - } unless defined? @@LC2KCONV - mes = Kconv::kconv(mes, @@LC2KCONV[@lang]) else mes -- cgit