"Sylvain Petreolle" <spetreolle@yahoo.fr> wrote: > Please find it attached. Thanks for the log. It took awhile to figure out what happens. Changelog: Huw D M Davies <hdavies@codeweavers.com> Make the return buffer larger. (For example EuroSign in uft8 is 3+1 bytes long). [Fixes entering of the Euro on uft8 locales]. -- Dmitry.
--- cvs/hq/wine/dlls/x11drv/keyboard.c Wed Jul 9 16:12:02 2003 +++ wine/dlls/x11drv/keyboard.c Mon Jul 14 19:06:59 2003 @@ -1757,7 +1757,7 @@ KeySym keysym; INT ret; int keyc; - char lpChar[2]; + char lpChar[10]; HWND focus; XIC xic; @@ -1834,9 +1834,9 @@ else TRACE("Found keycode %d (0x%2X)\n",e.keycode,e.keycode); if (xic) - ret = XmbLookupString(xic, &e, lpChar, 2, &keysym, NULL); + ret = XmbLookupString(xic, &e, lpChar, sizeof(lpChar), &keysym, NULL); else - ret = XLookupString(&e, lpChar, 2, &keysym, NULL); + ret = XLookupString(&e, lpChar, sizeof(lpChar), &keysym, NULL); wine_tsx11_unlock(); if (ret == 0)