http://bugs.winehq.org/show_bug.cgi?id=34564
Bug #: 34564 Summary: RTX Server fail to import user template database with builtin msvcp60 Product: Wine Version: 1.7.2 Platform: x86 URL: http://dldir1.qq.com/foxmail/rtx/rtxserver2012formal.e xe OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: msvcp AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com CC: piotr.caban@gmail.com Depends on: 34552 Classification: Unclassified
Created attachment 46016 --> http://bugs.winehq.org/attachment.cgi?id=46016 Log: last 150000 line of +relay,+nls,+msvcp,+seh,+tid trace
Hello, this is next of Bug 34552
1. winetricks -q mfc42 vbrun6 mdac28 jet40 , workaround for several missing components / functions.
2. import odbc registry from Windows to Wine
3. run the installer
The installer will auto start UserManager.exe at the last.
The first time UserManager.exe runs, it will ask to import a user template database, with native msvcp60 it success, with buitin it fails.
The relay log contains some related error messages like: 03fa:Call msvcrt.wcslen(003354ac L"Syntax error in string in query expres sion ''????????????????g'.") ret=019a9066
The relay log show the query exp as: L"Insert into Sys_user(ID,UserName,Name, Pwd,Gender,UserVersion,UserRight,Mobile,Email,Phone,Face,UserType,Profile OpenLevel,BuddyAuth,LastLogonTime,AuthType) values(1001,'Hunter','\674e\6 60e','',0,1,'????????????????g"
The UserRight field '????????????????g is suspect, according to log before, it sound like converted from \3030\3030\3030\3030
03fa:trace:nls:WideCharToMultiByte cp 0 L"Insert into Sys_user(ID,UserNam e,Name,Pwd,Gender,UserVersion,UserRight,Mobile,Email,Phone,Face,UserType, ProfileOpenLevel,BuddyAuth,LastLogonTime,AuthType) values(1001,'Hunter',' \674e\660e','',0,1,'\3030\3030\3030\3030\3030\3030\3030\3030\3030\3030\30 30\3030\3030\3030\3030\3030g\0000" -> "Insert into Sys_user(ID,UserName,N ame,Pwd,Gender,UserVersion,UserRight,Mobile,Email,Phone,Face,UserType,Pro fileOpenLevel,BuddyAuth,LastLogonTime,AuthType) values(1001,'Hunter','\xc 0\xee\xc3\xf7','',0,1,'????????????????g\x00", ret = 209
With native msvcp60, the UserRight field is converted to '00000000...' (don't remember how many zero), that sounds like an ASCII conversion from 0x30303030,0x30303030,...
Guess some msvcp60 call before is incorrect, but I don't know which, will attach related logs
http://bugs.winehq.org/show_bug.cgi?id=34564
--- Comment #1 from Qian Hong fracting@gmail.com 2013-09-21 10:40:00 CDT --- Oh, forgot to said, I applied patch 99019 to patch 99021
http://bugs.winehq.org/show_bug.cgi?id=34564
--- Comment #2 from Piotr Caban piotr.caban@gmail.com 2013-09-23 04:12:34 CDT --- Created attachment 46034 --> http://bugs.winehq.org/attachment.cgi?id=46034 fix for char_traits<wchar>::assign function
Could you please check if this patch fixes the bug? If it still doesn't work please attach a new log (from wine with this patch applied).
http://bugs.winehq.org/show_bug.cgi?id=34564
--- Comment #3 from Qian Hong fracting@gmail.com 2013-09-23 05:03:06 CDT --- (In reply to comment #2)
Created attachment 46034 [details] fix for char_traits<wchar>::assign function
Could you please check if this patch fixes the bug? If it still doesn't work please attach a new log (from wine with this patch applied).
Thanks the work, the patch fix the bug!
-static wchar_t* char_traits_wchar_assignn(wchar_t *str, MSVCP_size_t num, wchar_t c) +static wchar_t* char_traits_wchar_assignn(wchar_t *str, + MSVCP_size_t num, wchar_t c) { - return memset(str, c, num); + MSVCP_size_t i; + + for(i=0; i<num; i++) + str[i] = c; + + return str; }
BTW, how about using wmemset()?
http://bugs.winehq.org/show_bug.cgi?id=34564
--- Comment #4 from Qian Hong fracting@gmail.com 2013-09-23 05:06:52 CDT --- Looks like wmemset isn't C89 compatible, please ignore my last question :)
http://bugs.winehq.org/show_bug.cgi?id=34564
Bug 34564 depends on bug 34552, which changed state.
Bug 34552 Summary: RTX Server needs unimplemented msvcp60.dll.??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@G@Z http://bugs.winehq.org/show_bug.cgi?id=34552
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
http://bugs.winehq.org/show_bug.cgi?id=34564
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |dbbe237985cdb645f9a1d0a223c | |62e24fa4cd6f0 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from Piotr Caban piotr.caban@gmail.com 2013-09-24 15:37:33 CDT --- The patch is in wine. Marking as fixed.
http://bugs.winehq.org/show_bug.cgi?id=34564
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2013-09-27 13:41:51 CDT --- Closing bugs fixed in 1.7.3.
http://bugs.winehq.org/show_bug.cgi?id=34564
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.6.x
http://bugs.winehq.org/show_bug.cgi?id=34564
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.6.x |---
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2013-11-15 13:40:42 CST --- Removing 1.6.x milestone from bugs included in 1.6.1.