[Bug 48288] New: kernelbase: Japanese character wrongly reported as invalid.

WineHQ Bugzilla wine-bugs at winehq.org
Sun Dec 15 09:23:39 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=48288

            Bug ID: 48288
           Summary: kernelbase: Japanese character wrongly reported as
                    invalid.
           Product: Wine
           Version: 5.0-rc1
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: kernelbase
          Assignee: wine-bugs at winehq.org
          Reporter: sagawa.aki+winebugs at gmail.com
   Regression SHA1: 7e8f1dac30267058cf3b36d49b6ed3c440087024
      Distribution: Ubuntu

Wine 5.0-rc1 has an issue which is very similar to Bug 17500.
I'm working on this and I'll submit a parch in a few days.

In short, the following code doesn't work as expected:
  MultiByteToWideChar(932, MB_ERR_INVALID_CHARS, "\x81\x45", -1, NULL, 0);

Steps to reproduce:
  1. obtain the test case from attachment 19616 (written by Leffe for Bug
17500).
  2. compile it with mingw32 compiler.
  3. LANG=ja_JP.UTF-8 wine testcase.exe
  4. echo "ret is $?"

Expected result:
  ret is 0
  i.e. MultiByteToWideChar doesn't report an error.

Actual result:
  ret is 1
  i.e. MultiByteToWideChar complains about the input.

-- 
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.



More information about the wine-bugs mailing list