Here's a patch to fix the bug which causes a crash when you try to
enter characters on Windows. This has existed for at least a week -
is anybody else building for Windows right now?
Andrew.
--
http://linguaphile.sourceforge.net
RCS file: /cvsroot/abi/src/af/ev/win/ev_Win32Keyboard.cpp,v
retrieving revision 1.23
diff -u -r1.23 ev_Win32Keyboard.cpp
--- src/af/ev/win/ev_Win32Keyboard.cpp 2001/02/06 22:53:54 1.23
+++ src/af/ev/win/ev_Win32Keyboard.cpp 2001/05/18 10:35:36
@@ -544,8 +544,13 @@
break;
case EV_EEMR_COMPLETE:
- UT_ASSERT(pEM);
- invokeKeyboardMethod(pView,pEM,&charData,1);
+ {
+ UT_ASSERT(pEM);
+ UT_UCSChar *ucs = new UT_UCSChar[1];
+ ucs[0] = charData;
+ invokeKeyboardMethod(pView,pEM,ucs,1);
+ delete [] ucs;
+ }
break;
case EV_EEMR_INCOMPLETE:
Index: src/af/util/xp/ut_mbtowc.cpp
===================================================================