diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-05 07:26:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-05 07:26:15 +0000 |
commit | cb85a5316f1edb5b0bd7d49eb3ad4e2115b52ce8 (patch) | |
tree | 5532ab2925cf66ed471f58799b4966d9bbe47abe /win32/win32.c | |
parent | 1a6e648075c92a128c3a814af43390c2b50fff2f (diff) | |
download | ruby-cb85a5316f1edb5b0bd7d49eb3ad4e2115b52ce8.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/win32.c')
-rw-r--r-- | win32/win32.c | 4 |
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; |