win32.c: no locale

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-06-05 07:26:15 +00:00
parent 1a6e648075
commit cb85a5316f

View File

@ -1637,7 +1637,7 @@ has_redirection(const char *cmd, UINT cp)
static inline WCHAR * static inline WCHAR *
skipspace(WCHAR *ptr) skipspace(WCHAR *ptr)
{ {
while (iswspace(*ptr)) while (ISSPACE(*ptr))
ptr++; ptr++;
return ptr; return ptr;
} }
@ -1659,7 +1659,7 @@ w32_cmdvector(const WCHAR *cmd, char ***vec, UINT cp, rb_encoding *enc)
// //
// just return if we don't have a command line // just return if we don't have a command line
// //
while (iswspace(*cmd)) while (ISSPACE(*cmd))
cmd++; cmd++;
if (!*cmd) { if (!*cmd) {
*vec = NULL; *vec = NULL;