Wed Jan 30 21:29:12 CET 2008 Mads Lindstroem <[EMAIL PROTECTED]>
* Workaround for processExecAsyncTimed bug
When a process, created with the function processExecAsyncTimed,
stops it makes WxHaskell die with "Prelude.chr bad argument". The
problem is reported elsewhere
http://sourceforge.net/mailarchive/message.php?msg_id=54647.129.16.31.149.1111686341.squirrel%40webmail.chalmers.se
and here
http://www.mail-archive.com/wxhaskell-users@lists.sourceforge.net/msg00267.html
.
This patch does not solve the underlying problem, as it is still unknown, but
do create a workaround.
The bug has only been seen on Linux systems.
New patches:
[Workaround for processExecAsyncTimed bug
Mads Lindstroem <[EMAIL PROTECTED]>**20080130202912
When a process, created with the function processExecAsyncTimed,
stops it makes WxHaskell die with "Prelude.chr bad argument". The
problem is reported elsewhere
http://sourceforge.net/mailarchive/message.php?msg_id=54647.129.16.31.149.1111686341.squirrel%40webmail.chalmers.se
and here
http://www.mail-archive.com/wxhaskell-users@lists.sourceforge.net/msg00267.html .
This patch does not solve the underlying problem, as it is still unknown, but do create a workaround.
The bug has only been seen on Linux systems.
] {
hunk ./wxcore/src/Graphics/UI/WXCore/WxcTypes.hs 122
+import System.IO(stderr, hPutStrLn)
hunk ./wxcore/src/Graphics/UI/WXCore/WxcTypes.hs 617
- return (fromCWchar x)
+ if (x < 0)
+ then do hPutStrLn stderr ("Recieved negative unicode: " ++ (show x))
+ return '\n'
+ else return (fromCWchar x)
+
+{- The (x < 0) if expression in withCharResult is a workaround for
+"processExecAsyncTimed dies with Prelude.chr bad argument"- bug
+reported here
+http://sourceforge.net/mailarchive/message.php?msg_id=54647.129.16.31.149.1111686341.squirrel%40webmail.chalmers.se
+and here
+http://www.mail-archive.com/wxhaskell-users@lists.sourceforge.net/msg00267.html
+-}
+
}
Context:
[Initial wxWidgets 2.8.x's API Support
shelarcy <[EMAIL PROTECTED]>**20071212130224]
[TAG wxhaskell 2007-12-06
Eric Kow <[EMAIL PROTECTED]>**20071206155325]
Patch bundle hash:
e552f49cc775f2a1500a61264a292f1beb192a13
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users