Switched to ANSI (Windows-1251) in r17309. Tell me if it works.
Shouldn't it work if saved as UTF, like all others? In game it works in ANSY only. How can I fix it?
Shouldn't you replace strnlen with _mbstrnlen, cause russian characters are multibyte?
msdn.microsoft.com