mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
7d8c42297e
commit
dfca247f66
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
Mon Jan 14 23:31:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (setup): add -I$(EXTOUT)/$(arch) to MINIRUBY.
|
* configure.in (setup): add -I$(EXTOUT)/$(arch) to MINIRUBY.
|
||||||
|
|
|
@ -124,7 +124,7 @@ module Kconv
|
||||||
# Kconv.tolocale => string
|
# Kconv.tolocale => string
|
||||||
#
|
#
|
||||||
# Convert <code>self</code> to locale encoding
|
# Convert <code>self</code> to locale encoding
|
||||||
def tolocale
|
def tolocale(str)
|
||||||
kconv(str, Encoding.locale_charmap)
|
kconv(str, Encoding.locale_charmap)
|
||||||
end
|
end
|
||||||
module_function :tolocale
|
module_function :tolocale
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue