Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Dec 2004 16:14:31 -0600
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Mikhail Teterin" <mi@aldan.algebra.com>
Cc:        gnome@freebsd.org
Subject:   Re: newly built AbiWord-2.2 dies on startup
Message-ID:  <opsiu6qhqo9aq2h7@mezz.mezzweb.com>
In-Reply-To: <200412112127.iBBLRK15095680@aldan.algebra.com>
References:  <200412112127.iBBLRK15095680@aldan.algebra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
------------4ybXoX1bODKmNBLggXHcdr
Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii
Content-Transfer-Encoding: 8bit

On Sat, 11 Dec 2004 16:27:20 -0500 (EST), Mikhail Teterin  
<mi@aldan.algebra.com> wrote:

> Hello!
>
> The AbiWord-2.0 worked and, thankfully, continues to work with
> only occasional crashes. The newly built and installed next to
> the older brethren AbiWord-2.2, however, segfaults on startup
> (after showing the logo) with the following core:

Are you using the different locale? Can you try this patch in attach? Put  
it in /usr/ports/editors/abiword/files/ and rebuild/reinstall it, then let  
me know the result. This patch was created by bland back in AbiWord2  
2.0.3_2.

Cheers,
Mezz

> 	#0  0x2936d14f in kill () from /lib/libc.so.5
> 	#1  0x2921fdd6 in raise () from /usr/lib/libpthread.so.1
> 	#2  0x293e10b2 in abort () from /lib/libc.so.5
> 	#3  0x08130929 in AP_UnixApp::catchSignals ()
> 	#4  0x0813085a in signalWrapper ()
> 	#5  0x2922524a in sigaction () from /usr/lib/libpthread.so.1
> 	#6  0xbfbfff94 in ?? ()
> 	#7  0x0000000a in ?? ()
> 	#8  0xbfbfe520 in ?? ()
> 	#9  0xbfbfe260 in ?? ()
> 	#10 0x00000000 in ?? ()
> 	#11 0x29224f30 in sigaction () from /usr/lib/libpthread.so.1
> 	#12 0x0826ca9e in EV_UnixMenu::synthesizeMenu ()
> 	#13 0x0826d63f in EV_UnixMenuBar::synthesizeMenuBar ()
> 	#14 0x08236b6e in XAP_UnixFrameImpl::createTopLevelWindow ()
> 	#15 0x081334a2 in AP_UnixFrameImpl::_createWindow ()
> 	#16 0x08131a9b in AP_UnixFrame::initialize ()
> 	#17 0x0812e2c6 in AP_UnixApp::newFrame ()
> 	#18 0x08135e36 in AP_App::openCmdLineFiles ()
> 	#19 0x08130125 in AP_UnixApp::main ()
> 	#20 0x0812d996 in main ()
>
> is this because the older version is still installed, or for some other
> reason? Thanks!
>
> 	-mi


-- 
mezz7@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org
------------4ybXoX1bODKmNBLggXHcdr
Content-Disposition: attachment;
	filename="patch-src::af::ev::unix::ev_UnixMenu.cpp"
Content-Type: application/octet-stream;
	name="patch-src::af::ev::unix::ev_UnixMenu.cpp"
Content-Transfer-Encoding: 8bit

--- src/af/ev/unix/ev_UnixMenu.cpp.orig	Sat Dec 11 16:05:23 2004
+++ src/af/ev/unix/ev_UnixMenu.cpp	Sat Dec 11 16:09:41 2004
@@ -431,22 +431,20 @@
 	return true;
 }
 
-static char _ev_get_underlined_char(const char * szString)
+static guint _ev_get_underlined_char(const char * szString)
 {
 
 	UT_ASSERT(szString);
 	
-	// return the char right after the underline
-	const char * p = szString;
-	while (*p && *(p+1))
+	// return the keycode right after the underline
+	const UT_UCS4String str(szString);
+	for (int i = 0; i < str.length() - 1; )
 	{
-		if (*p == '_')
-			return *++p;
-		else
-			p++;
+		if (str[i++] == '_')
+			return gdk_unicode_to_keyval(str[i]);
 	}
 
-	return 0;
+	return GDK_VoidSymbol;
 }
 
 static void _ev_strip_underline(char * bufResult,
@@ -749,12 +747,12 @@
 				// version of the underlined char, since all the menus ignore upper
 				// case (SHIFT-MOD1-[char]) invokations of accelerators.
 
-				if (bAltOnMod1)
+				if (keyCode != GDK_VoidSymbol && bAltOnMod1)
 				{
 					EV_EditEventMapper * pEEM = XAP_App::getApp()->getEditEventMapper();
 					UT_ASSERT(pEEM);
 					EV_EditMethod * pEM = NULL;
-					pEEM->Keystroke(EV_EKP_PRESS|EV_EMS_ALT|tolower(keyCode),&pEM);
+					pEEM->Keystroke(EV_EKP_PRESS|EV_EMS_ALT|keyCode,&pEM);
 
 					// if the pointer is valid, there is a conflict
 					bConflict = (pEM != NULL);

------------4ybXoX1bODKmNBLggXHcdr--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?opsiu6qhqo9aq2h7>