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

ruby-changes:41274

From: usa <ko1@a...>
Date: Sun, 27 Dec 2015 20:55:05 +0900 (JST)
Subject: [ruby-changes:41274] usa:r53346 (trunk): * process.c: use rb_w32_uchdir() instead of plain chdir() on Windows.

usa	2015-12-27 20:54:59 +0900 (Sun, 27 Dec 2015)

  New Revision: 53346

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

  Log:
    * process.c: use rb_w32_uchdir() instead of plain chdir() on Windows.
      reported by naruse via twitter.

  Modified files:
    trunk/ChangeLog
    trunk/process.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53345)
+++ ChangeLog	(revision 53346)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Dec 27 20:54:22 2015  NAKAMURA Usaku  <usa@r...>
+
+	* process.c: use rb_w32_uchdir() instead of plain chdir() on Windows.
+	  reported by naruse via twitter.
+
 Sun Dec 27 20:00:31 2015  SHIBATA Hiroshi  <hsbt@r...>
 
 	* enc/x_emoji.h: fix dead-link.
Index: process.c
===================================================================
--- process.c	(revision 53345)
+++ process.c	(revision 53346)
@@ -2967,6 +2967,11 @@ save_env(struct rb_execarg *sargp) https://github.com/ruby/ruby/blob/trunk/process.c#L2967
 }
 #endif
 
+#ifdef _WIN32
+#undef chdir
+#define chdir(p) rb_w32_uchdir(p)
+#endif
+
 /* This function should be async-signal-safe when sargp is NULL.  Hopefully it is. */
 int
 rb_execarg_run_options(const struct rb_execarg *eargp, struct rb_execarg *sargp, char *errmsg, size_t errmsg_buflen)

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

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