[前][次][番号順一覧][スレッド一覧]

ruby-changes:34243

From: usa <ko1@a...>
Date: Tue, 3 Jun 2014 07:35:26 +0900 (JST)
Subject: [ruby-changes:34243] usa:r46324 (trunk): * win32/win32.c (rb_w32_conv_from_wchar): follow nobu's previous commit.

usa	2014-06-03 07:35:17 +0900 (Tue, 03 Jun 2014)

  New Revision: 46324

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46324

  Log:
    * 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?

  Modified files:
    trunk/win32/win32.c
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 46323)
+++ win32/win32.c	(revision 46324)
@@ -2049,7 +2049,7 @@ rb_w32_conv_from_wchar(const WCHAR *wstr https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L2049
 {
     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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]