http://bugs.winehq.org/show_bug.cgi?id=58359
Bug ID: 58359 Summary: IsTextUnicode returns incorrect result on IS_TEXT_UNICODE_ILLEGAL_CHARS Product: Wine Version: 10.8 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: advapi32 Assignee: wine-bugs@winehq.org Reporter: vityacv@gmail.com Distribution: ---
When running following sample it prints ok in wine, but it should be invalid string
``` #include <windows.h>
void testUni(){ int isUni = IS_TEXT_UNICODE_ILLEGAL_CHARS; wchar_t buf[2]; buf[0] = 0xFFFF; buf[1] =0; IsTextUnicode((void *)buf, 4, &isUni); if (isUni & IS_TEXT_UNICODE_ILLEGAL_CHARS) { printf("invalid string"); } else { printf("ok"); } }
```
http://bugs.winehq.org/show_bug.cgi?id=58359
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
http://bugs.winehq.org/show_bug.cgi?id=58359
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- It looks like this flag is simply not supported currently. Do you have an application that's using it?
http://bugs.winehq.org/show_bug.cgi?id=58359
--- Comment #2 from vityacv@gmail.com --- I can share binary sample if needed, atm I switched to reactos implementation https://github.com/reactos/reactos/blob/c8947162956dffde36072ef6f5c18b08e536... It might serve as reference for wine as well
http://bugs.winehq.org/show_bug.cgi?id=58359
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- No, I'm talking about real world application that's using it, it's clear how to produce a test case for this.
http://bugs.winehq.org/show_bug.cgi?id=58359
--- Comment #4 from vityacv@gmail.com --- For my case, I'm modding a game (FEAR) and dedicated server had issue with this case, like player uses invalid unicode symbols in nickname, and it causes server hang, was trying to fix it using this api.