summaryrefslogtreecommitdiff
path: root/ext/nkf/lib/kconv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/nkf/lib/kconv.rb')
-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 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