summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-05 07:26:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-05 07:26:15 +0000
commitcb85a5316f1edb5b0bd7d49eb3ad4e2115b52ce8 (patch)
tree5532ab2925cf66ed471f58799b4966d9bbe47abe
parent1a6e648075c92a128c3a814af43390c2b50fff2f (diff)
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
-rw-r--r--win32/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 0296f2d3c1..d10081b4ce 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1637,7 +1637,7 @@ has_redirection(const char *cmd, UINT cp)
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 ***vec, UINT cp, rb_encoding *enc)
//
// just return if we don't have a command line
//
- while (iswspace(*cmd))
+ while (ISSPACE(*cmd))
cmd++;
if (!*cmd) {
*vec = NULL;