From xemacs-m  Tue Sep 16 17:56:55 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA18878
	for <xemacs-beta@xemacs.org>; Tue, 16 Sep 1997 17:56:54 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.7/8.8.7) id QAA20410;
	Tue, 16 Sep 1997 16:00:22 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: gnuclient works? (and a gnuclient induced core dump!)
References: <199709161820.LAA00367@sandman> 	<kig202par3d.fsf@jagor.srce.hr> <199709162150.OAA03313@xemacs.eng.sun.com>
X-Face: `'%\i;ySOu]g?NlziJSk_$&@]KP`}~PEQPjZ5;nxSaDW_o$4+4%Ab]%Ifw3ZR;7TIT3,O,'
 @2{L;]ox6kc;$_5kU'n**9vFg-]eV~GbxSVCx|(s%uR[],*:^WKmC`B}(;|k9/m]gwt?&`t;^rfCJg
 khHH>pP1W\)xM0U@!FNDD72{3fDP$PkBhx^7Z?-WxH6DbFN:QOnT`llzW}VGdYv;n9lzljQvKTIBhQ
 YuV
X-Attribution: sb
From: SL Baur <steve@xemacs.org>
In-Reply-To: Martin Buchholz's message of "Tue, 16 Sep 1997 14:50:40 -0700"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 16 Sep 1997 16:00:22 -0700
Message-ID: <m2raaohnjt.fsf@altair.xemacs.org>
Lines: 27
X-Mailer: Quassia Gnus v0.5/XEmacs 20.3(beta21) - "Minsk"

Martin Buchholz <mrb@Eng.Sun.COM> writes:

>>> #5  0x131dec in bytecount_to_charcount (ptr=0x15fc508 "[2~", len=3)
                                                           ^^^

That is three bytes of four of a standard terminal escape sequence,
the first of which is an ESCape.

kI (Insert character/Insert mode key) on the Linux console and VTxxx
(from a quick scan of /etc/termcap).

> build_string requires that the string passed to it as argument is
> encoded using the internal Mule encoding.  When obtaining strings from 
> outside of XEmacs, this is only safe if the argument string is
> guaranteed to be 7-bit ASCII.

> So I bet that the terminfo entry for the terminal has non-ASCII
> (i.e. high bit on) characters.

> term_get_fkeys_1 has not been mule-ized.  It needs to use
> build_ext_string instead of build_string.

> Hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

> OK. Dan, could you try this completely untested patch?

That patch might do it.

