diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-02 22:35:17 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-02 22:35:17 +0000 |
commit | 25e8bfce581b375614ecb1ee57e1839bcff6ae96 (patch) | |
tree | 34c15ad9049ea47dafcae95e66536f0ef7e5dfd9 | |
parent | 0fec24f972ecd5d0b714a48c9a21e322285f9778 (diff) | |
download | ruby-25e8bfce581b375614ecb1ee57e1839bcff6ae96.tar.gz |
* win32/win32.c (rb_w32_conv_from_wchar): follow nobu's previous commit.
hey nobu, why don't you write Changelog for such serious changes?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | win32/win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index f58425f1b9..900a9cc42d 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2049,7 +2049,7 @@ rb_w32_conv_from_wchar(const WCHAR *wstr, rb_encoding *enc) { VALUE src; long len = lstrlenW(wstr); - int encindex = ENC_TO_ENCINDEX(enc); + int encindex = rb_enc_to_index(enc); if (encindex == ENCINDEX_UTF_16LE) { return rb_enc_str_new((char *)wstr, len * sizeof(WCHAR), enc); |