You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Функция InStream::unreadChar принимает как параметр
char и вызывает reader->unreadChar, принимающий int.
Поскольку тип char знаковый во многих
системах, происходит знаковое расширение с
непредсказуемыми последствиями, например,
код
char c = inf.nextChar();
inf.unreadChar(c);
assert(c == inf.readChar());
провалит assert для файла с русской буквой я в
windows 1251.
Original issue reported on code.google.com by [email protected] on 6 Apr 2014 at 3:23
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 6 Apr 2014 at 3:23The text was updated successfully, but these errors were encountered: