- fixed: The command line parser of the console was incapable of handling non-ASCII characters.
This commit is contained in:
parent
4532c2c489
commit
02836b3c3f
2 changed files with 5 additions and 5 deletions
|
|
@ -828,12 +828,12 @@ void FString::StripLeftRight ()
|
|||
if (max == 0) return;
|
||||
for (i = 0; i < max; ++i)
|
||||
{
|
||||
if (!isspace((unsigned char)Chars[i]))
|
||||
if (Chars[i] < 0 || !isspace((unsigned char)Chars[i]))
|
||||
break;
|
||||
}
|
||||
for (j = max - 1; j >= i; --j)
|
||||
{
|
||||
if (!isspace((unsigned char)Chars[j]))
|
||||
if (Chars[i] < 0 || !isspace((unsigned char)Chars[j]))
|
||||
break;
|
||||
}
|
||||
if (i == 0 && j == max - 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue