aboutsummaryrefslogtreecommitdiffstats
path: root/win32
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
commitb6d320e56617c603104a177a6b2c9ce09eec64b0 (patch)
tree5532ab2925cf66ed471f58799b4966d9bbe47abe /win32
parent016e55d8e792bec3caafb1740fd185a4c4239e02 (diff)
downloadruby-b6d320e56617c603104a177a6b2c9ce09eec64b0.tar.gz
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
Diffstat (limited to 'win32')
-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;