aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-14 14:37:29 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-14 14:37:29 +0000
commitdfca247f666821d41176737a89186cecf4a7a1fa (patch)
tree15532c4ef5142391eba1e3d3da76ad4d993ec4c6
parent7d8c42297e38a2e8a719c4775e491de0d49054f1 (diff)
downloadruby-dfca247f666821d41176737a89186cecf4a7a1fa.tar.gz
* ext/nkf/lib/kconv.rb (Kconv.tolocale): argument is str.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--ext/nkf/lib/kconv.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d602eccbb1..c872696f73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Jan 14 23:33:02 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb (Kconv.tolocale): argument is str.
+
Mon Jan 14 23:31:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* configure.in (setup): add -I$(EXTOUT)/$(arch) to MINIRUBY.
diff --git a/ext/nkf/lib/kconv.rb b/ext/nkf/lib/kconv.rb
index 159a5aa233..81a8a4b72b 100644
--- a/ext/nkf/lib/kconv.rb
+++ b/ext/nkf/lib/kconv.rb
@@ -124,7 +124,7 @@ module Kconv
# Kconv.tolocale => string
#
# Convert <code>self</code> to locale encoding
- def tolocale
+ def tolocale(str)
kconv(str, Encoding.locale_charmap)
end
module_function :tolocale