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

ruby-changes:46904

From: nobu <ko1@a...>
Date: Mon, 5 Jun 2017 16:26:21 +0900 (JST)
Subject: [ruby-changes:46904] nobu:r59019 (trunk): win32.c: no locale

nobu	2017-06-05 16:26:15 +0900 (Mon, 05 Jun 2017)

  New Revision: 59019

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

  Log:
    win32.c: no locale
    
    * win32/win32.c (skipspace, w32_cmdvector): get rid of iswspace(),
      which is locale dependent.

  Modified files:
    trunk/win32/win32.c
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 59018)
+++ win32/win32.c	(revision 59019)
@@ -1637,7 +1637,7 @@ has_redirection(const char *cmd, UINT cp https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L1637
 static inline WCHAR *
 skipspace(WCHAR *ptr)
 {
-    while (iswspace(*ptr))
+    while (ISSPACE(*ptr))
 	ptr++;
     return ptr;
 }
@@ -1659,7 +1659,7 @@ w32_cmdvector(const WCHAR *cmd, char *** https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L1659
     //
     // just return if we don't have a command line
     //
-    while (iswspace(*cmd))
+    while (ISSPACE(*cmd))
 	cmd++;
     if (!*cmd) {
 	*vec = NULL;

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

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