summaryrefslogtreecommitdiffstats
path: root/ext/nkf/lib
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
commit0e04bd210f6b0b2efcfcc74c0dd16df8683dadf0 (patch)
tree15532c4ef5142391eba1e3d3da76ad4d993ec4c6 /ext/nkf/lib
parent4064ff00f7c26b146a61fdaeb25ee399996459cb (diff)
downloadruby-0e04bd210f6b0b2efcfcc74c0dd16df8683dadf0.tar.gz
ruby-0e04bd210f6b0b2efcfcc74c0dd16df8683dadf0.tar.xz
ruby-0e04bd210f6b0b2efcfcc74c0dd16df8683dadf0.zip
* 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
Diffstat (limited to 'ext/nkf/lib')
-rw-r--r--ext/nkf/lib/kconv.rb2
1 files changed, 1 insertions, 1 deletions
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 <code>self</code> to locale encoding
- def tolocale
+ def tolocale(str)
kconv(str, Encoding.locale_charmap)
end
module_function :tolocale