http://bugs.winehq.org/show_bug.cgi?id=27806
Summary: fopen() CRT functions should recognize the unicode encoding modifier in mode string (CCS=xxx) Product: Wine Version: 1.3.24 Platform: x86 OS/Version: Linux Status: NEW Severity: minor Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net
Hello,
many MS installer use Unicode file streams to write their log files. Bug 8598 is about general unicode support for CRT functions.
IE9 installer for example spams console due to fopen() not recognizing ",ccs=xxx" sequence in mode string.
--- snip --- ... 0032:Call msvcrt._wfopen_s(0033e5b0,0033ebd8 L"C:\windows\TEMP\IE9b5d.tmp\IE9-support\NrPolicy.txt",01002190 L"rt,ccs=UNICODE") ret=0101549f 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag , not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag c not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag c not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag s not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag = not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag U not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag N not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag I not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag C not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag O not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag D not supported 0032:fixme:msvcrt:msvcrt_get_flags :unknown flag E not supported 0032:Call KERNEL32.CreateFileW(0033ebd8 L"C:\windows\TEMP\IE9b5d.tmp\IE9-support\NrPolicy.txt",80000000,00000003,0033e3a0,00000003,00000080,00000000) ret=736fd75e 0032:Ret KERNEL32.CreateFileW() retval=00000098 ret=736fd75e 0032:Ret msvcrt._wfopen_s() retval=00000000 ret=0101549f ... --- snip ---
MSDN: http://msdn.microsoft.com/en-us/library/yeby3zcb.aspx
Bug 8598 needs proper implementation first to really support this but in the meantime the unsupported ",ccs=xxx" mode flags should be recognized and a FIXME printed instead.
Regards
http://bugs.winehq.org/show_bug.cgi?id=27806
--- Comment #1 from Dan Kegel dank@kegel.com 2012-07-07 23:36:26 CDT --- Created attachment 40920 --> http://bugs.winehq.org/attachment.cgi?id=40920 trivial patch to skip everything after ,
Seems to affect cl.exe from vc2005. This makes it a bit happier.
http://bugs.winehq.org/show_bug.cgi?id=27806
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |piotr.caban@gmail.com Resolution| |FIXED
--- Comment #2 from Piotr Caban piotr.caban@gmail.com 2013-01-11 13:57:43 CST --- Since the ccs option is now recognized I guess this bug is fixed. Please open bugs for specific applications if it's still not working.
http://bugs.winehq.org/show_bug.cgi?id=27806
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2013-01-18 14:56:47 CST --- Closing bugs fixed in 1.5.22.
http://bugs.winehq.org/show_bug.cgi?id=27806
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Installer Fixed by SHA1| |96be6eb570cdf0da9e085e70d1b | |bb2e59b5b920f