Yes,
with something like:
FILE* pf=fopen("...some file ...","r");
char buf[1000]
(...)
while (fgets(buf,1000,pf) != NULL)
{
buf[999]='\0';
buffer_insert_ascstring (current_buffer, buf);
}
--
it does not crash anymore...
Thank you very much for your help James, I appreciate!
Steeve Beaulieu
On Tue, Jun 21, 2011 at 5:24 PM, Jerry James <james(a)xemacs.org> wrote:
On Tue, Jun 21, 2011 at 1:35 PM, Steeve Beaulieu
<mintunix(a)gmail.com>
wrote:
> Is it possible that characters like double quotes, single quotes and
newline
> \n character is
> not considered ascii text?
ASSERT_ASCTEXT_ASCII checks that each byte in the string lies between
0x00 and 0x7F, so your crash means that it found a byte with the high
bit set. One possibility is that there is no null terminator, so it
runs off into the weeds somewhere and starts examining essentially
>random bytes. Can you verify that the characters you >want to insert
>end with a zero byte?
--
Jerry James
http://www.jamezone.org/
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta