Some Windows Bugs and Workarounds

Broken text is returned from console input

In some cases, broken text is returned from console input buffer.

Full description: https://github.com/Maximus5/ms-bug-2.

Appeared Fixed
Windows 2000 ?

Related issues

Broken cursor position and height in Windows 10

After SetConsoleScreenBufferSize call cursor position and height are broken.

Full description: https://github.com/Maximus5/ms-bug-1.

Appeared Fixed
Windows 10 (14361) Windows 10 (14371)

Workaround

Choose ‘Fixed cursor size’ at Text cursor settings page.

Related issues

Broken WM_MOUSEWHEEL’s mouse cursor position in Windows 10

MSDN says that WM_MOUSEWHEEL/lParam contains X and Y coordinates of the mouse pointer, relative to the upper-left corner of the screen.

But that is not true in Windows 10 anymore. Seems like the bug relates to several monitors, larger than 100% scale, and focused child window. Than, your window will receive larger coordinates than they would be.

Appeared Fixed
Windows 10 ?

Workaround

There is no proper workaround, because mouse pointer may be moved, after WM_MOUSEWHEEL was posted.

However, in most cases, retrieving mouse coordinates using GetCursorPos, instead of relying on message’s lParam, will be suitable.

Related issues

Broken desktop coordinate system in Windows 10

insider/forum/insider_wintp-insider_desktop/desktop-coordinate-system-is-broken

More details in this sample project: ms-bug-3.

Appeared Fixed
Windows 10 ?

Related issues

Exception in ReadConsoleOutput

social.msdn.microsoft.com/Forums/en-US/40c8e395-cca9-45c8-b9b8-2fbe6782ac2b

Appeared Fixed
Windows 7 Windows 10

Sample project

http://conemu-maximus5.googlecode.com/svn/files/BugReports/

Workaround

Turn on ‘Inject ConEmuHk’ option.

Related issues

Console screen buffer corrupts from other console application

social.msdn.microsoft.com/Forums/en-US/ec363615-397c-42a8-84d2-38a70e4f8ae2

Appeared Fixed
Windows 7 Windows 8

Related issues

Workaround

Turn on ‘Inject ConEmuHk’ option. Workaround was first created in ConEmu build 120509a.

chcp hung

Console code page change (chcp.com, SetConsoleCP, SetConsoleOutputCP) hungs.

Appeared Fixed
Windows XP ?

Related issues

Workaround

Turn on ‘Inject ConEmuHk’ option.

Insert/Overwrite indication

It is not possible to determine the state of ReadConsole procedure. ConEmu do not know if the RealConsole is in the ‘Insert’ or ‘Overwrite’ mode.

Wny not? Description is here.

Workaround

Doesn’t exists.

Conclusion

My (and not only) experience in ‘bug reporting’ suggests that Microsoft won’t fix reported bugs in current versions of Windows. Even in service packs.

But, may be, bug will be fixed in the next version of Windows if you manage to report them…

Users and developers, help yourself.