mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
1a6e648075
commit
cb85a5316f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue