http://bugs.winehq.org/show_bug.cgi?id=16923
Summary: sscanf function missing hh modifier Product: Wine Version: 1.1.10 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: pcjc2@cam.ac.uk
The sscanf function in the Wine msvcrt runtime doesn't support the "hh" modifier, as described here:
http://www.opengroup.org/onlinepubs/009695399/functions/sscanf.html
I've not tested or read the source thoroughly enough to see if any other of the standard modifiers are missing from the Wine implementation.
Since I'm not sure whether Micosoft's msvcrt.dll supports this modifier (and have no Windows box working to test at the moment), I appreciate this might be closed "not a bug" if the behaviour is infact compatible with Microsoft's.
I'm developing applications on linux, cross-compiling and using wine to test. The lack of an hh modifier caused memory corruption and some strange behaviours in the app. We've changed our code to avoid the problem, but I thought I'd do due diligence and mention it here in case it turned out to be a problem for you guys.
Best regards
Peter Clifton
http://bugs.winehq.org/show_bug.cgi?id=16923
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement
--- Comment #1 from Austin English austinenglish@gmail.com 2009-07-13 11:52:33 --- http://source.winehq.org/git/wine.git/?a=blob;f=dlls/msvcrt/scanf.h
If I'm reading that source right, we're probably missing a few others...
http://bugs.winehq.org/show_bug.cgi?id=16923
--- Comment #2 from Austin English austinenglish@gmail.com 2010-07-23 15:20:46 --- This may be fixed, I'm not sure though.
http://bugs.winehq.org/show_bug.cgi?id=16923
aaron.hamid@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aaron.hamid@gmail.com
--- Comment #3 from aaron.hamid@gmail.com 2011-05-20 00:20:27 CDT --- MS documentation does not appear to mention an 'hh' modifier: http://msdn.microsoft.com/en-us/library/xdb9w69d(v=vs.71).aspx
http://bugs.winehq.org/show_bug.cgi?id=16923
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |piotr.caban@gmail.com Resolution| |INVALID
--- Comment #4 from Piotr Caban piotr.caban@gmail.com 2012-04-16 09:36:41 CDT --- hh modifier should not be supported in msvcrt.dll.
http://bugs.winehq.org/show_bug.cgi?id=16923
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Frédéric Delanoy frederic.delanoy@gmail.com 2012-04-30 14:54:49 CDT --- Closing INVALID bugs.