[Bug 34930] Cygwin-compiled Hello World program couldn't display output

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jan 7 20:01:51 CST 2015


https://bugs.winehq.org/show_bug.cgi?id=34930

Richard Yao <ryao at gentoo.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ryao at gentoo.org

--- Comment #3 from Richard Yao <ryao at gentoo.org> ---
Both stderr and stdout are affected. Redirecting stderr of cygwin's echo.exe
program will reveal an additional error message:

/usr/bin/echo: write error: Bad file descriptor

Running wineconsole and then executing the program inside the graphical
interface works. It even works if you do `wineconsole --backend=user
/path/to/echo.exe Hello World`, but for obvious reasons, the console emulator
exits as soon as Hello World is printed. It does not work with you do
`wineconsole --backend=curses /path/to/echo.exe Hello World`. Running
wineconsole with WINEDEBUG=+console,+ntdll,+relay revaled that the two
situations execute identically until KERNEL32.GetConsoleWindow is called. With
---backend=user, a non-zero value is returned. With --backend=curses, a zero
value is returned. Afterward, the execution paths diverge.

By the way, this still affects Wine 1.7.33.

-- 
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