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

ruby-changes:29663

From: nobu <ko1@a...>
Date: Sun, 30 Jun 2013 23:16:38 +0900 (JST)
Subject: [ruby-changes:29663] nobu:r41715 (trunk): process.c: remove ineffective assignment

nobu	2013-06-30 23:16:26 +0900 (Sun, 30 Jun 2013)

  New Revision: 41715

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

  Log:
    process.c: remove ineffective assignment
    
    * process.c (rb_exec_fillarg): remove ineffective assignment unless
      default process encoding is set.

  Modified files:
    trunk/process.c

Index: process.c
===================================================================
--- process.c	(revision 41714)
+++ process.c	(revision 41715)
@@ -2179,8 +2179,8 @@ rb_exec_fillarg(VALUE prog, int argc, VA https://github.com/ruby/ruby/blob/trunk/process.c#L2179
         for (i = 0; i < argc; i++) {
 	    VALUE arg = argv[i];
 	    const char *s = StringValueCStr(arg);
-	    arg = EXPORT_STR(arg);
 #ifdef DEFAULT_PROCESS_ENCODING
+	    arg = EXPORT_STR(arg);
 	    s = RSTRING_PTR(arg);
 #endif
 	    rb_str_buf_cat(argv_buf, s, RSTRING_LEN(arg) + 1); /* include '\0' */

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

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