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

ruby-changes:40111

From: nobu <ko1@a...>
Date: Mon, 19 Oct 2015 21:10:32 +0900 (JST)
Subject: [ruby-changes:40111] nobu:r52192 (trunk): file.c: fix typos

nobu	2015-10-19 21:10:14 +0900 (Mon, 19 Oct 2015)

  New Revision: 52192

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

  Log:
    file.c: fix typos
    
    * file.c (rb_file_expand_path_internal): fix typos.
      [ruby-core:71111] [Bug #11601]

  Modified files:
    trunk/file.c
Index: file.c
===================================================================
--- file.c	(revision 52191)
+++ file.c	(revision 52192)
@@ -3558,9 +3558,9 @@ rb_file_expand_path_internal(VALUE fname https://github.com/ruby/ruby/blob/trunk/file.c#L3558
 	*p = '/';
 #endif
 	rb_str_set_len(result, p - buf + strlen(p));
-	encidx = ENC_GET(result);
+	encidx = ENCODING_GET(result);
 	tmp = result;
-	if (encidx != ENCIDX_UTF_8 && rb_enc_str_coderange(result) != ENC_CODERANGE_7BIT) {
+	if (encidx != ENCINDEX_UTF_8 && rb_enc_str_coderange(result) != ENC_CODERANGE_7BIT) {
 	    tmp = rb_str_encode_ospath(result);
 	}
 	len = MultiByteToWideChar(CP_UTF8, 0, RSTRING_PTR(tmp), -1, NULL, 0);

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

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