[Bug 16994] New: widechartomultibyte not converting properly

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Jan 18 05:41:02 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=16994

           Summary: widechartomultibyte not converting properly
           Product: Wine
           Version: 1.0.1
          Platform: Other
        OS/Version: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: msvcrt
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: lkcl at lkcl.net


Created an attachment (id=18786)
 --> (http://bugs.winehq.org/attachment.cgi?id=18786)
wchar to multibyte test case

(sorry, yes i know this is wine 1.0.1 i'm in the middle of compiling 1.1.13,
will update when it finishes).

this is from the python regression tests, the test is test_pep272.py,
relevant section here:


filenames = [
    #'abc',
    #u'ascii',
    #u'Gr\xfc\xdf-Gott',
    u'\u0393\u03b5\u03b9\u03ac-\u03c3\u03b1\u03c2',
   
u'\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435',
    u'\u306b\u307d\u3093',
    u'\u05d4\u05e9\u05e7\u05e6\u05e5\u05e1',
    u'\u66e8\u66e9\u66eb',
    u'\u66e8\u05e9\u3093\u0434\u0393\xdf',
    ]

for name in filenames:
    print "about to open"
    f = open(name, 'w')
    f.write((name+'\n').encode("utf-8"))
    f.close()


the relevant trace showing the problem is here:

0009:Call msvcrt._wfopen(0060fe60
L"\03b5\0393\03ac\03b9\033c-\03c2\03b1",00403000 L"w") ret=00401353
0009:Call KERNEL32.WideCharToMultiByte(00000000,00000000,0060fe60
L"\03b5\0393\03ac\03b9\033c-\03c2\03b1",00000008,00116df0,00000008,00000000,00000000)
ret=7ee14352
0009:trace:nls:WideCharToMultiByte cp 0 L"\03b5\0393\03ac\03b9\033c-\03c2\03b1"
-> "?????-??", ret = 8

test case attached.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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