From 0e04bd210f6b0b2efcfcc74c0dd16df8683dadf0 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 14 Jan 2008 14:37:29 +0000 Subject: * ext/nkf/lib/kconv.rb (Kconv.tolocale): argument is str. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/nkf/lib/kconv.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d602eccbb..c872696f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jan 14 23:33:02 2008 NARUSE, Yui + + * ext/nkf/lib/kconv.rb (Kconv.tolocale): argument is str. + Mon Jan 14 23:31:05 2008 Yukihiro Matsumoto * configure.in (setup): add -I$(EXTOUT)/$(arch) to MINIRUBY. diff --git a/ext/nkf/lib/kconv.rb b/ext/nkf/lib/kconv.rb index 159a5aa23..81a8a4b72 100644 --- a/ext/nkf/lib/kconv.rb +++ b/ext/nkf/lib/kconv.rb @@ -124,7 +124,7 @@ module Kconv # Kconv.tolocale => string # # Convert self to locale encoding - def tolocale + def tolocale(str) kconv(str, Encoding.locale_charmap) end module_function :tolocale -- cgit