[Bug 58359] New: IsTextUnicode returns incorrect result on IS_TEXT_UNICODE_ILLEGAL_CHARS
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(a)winehq.org Reporter: vityacv(a)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"); } } ``` -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58359 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58359 --- Comment #1 from Nikolay Sivov <bunglehead(a)gmail.com> --- It looks like this flag is simply not supported currently. Do you have an application that's using it? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58359 --- Comment #2 from vityacv(a)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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58359 --- Comment #3 from Nikolay Sivov <bunglehead(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58359 --- Comment #4 from vityacv(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla