From 1e45c6bafc8419930958103cc1651ff86cf5d84d Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Fri, 20 Jul 2007 03:25:21 +0000 Subject: various bug fixes. svn path=/trunk/; revision=8186 --- pd/src/g_rtext.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pd/src/g_rtext.c') diff --git a/pd/src/g_rtext.c b/pd/src/g_rtext.c index d65038c1..28becbdb 100644 --- a/pd/src/g_rtext.c +++ b/pd/src/g_rtext.c @@ -439,7 +439,10 @@ void rtext_key(t_rtext *x, int keynum, t_symbol *keysym) x->x_buf = resizebytes(x->x_buf, x->x_bufsize, newsize); x->x_bufsize = newsize; - if (n == '\n' || isprint(n)) +/* at Guenter's suggestion, use 'n>31' to test wither a character might +be printable in whatever 8-bit character set we find ourselves. */ + + if (n == '\n' || n > 31) { newsize = x->x_bufsize+1; x->x_buf = resizebytes(x->x_buf, x->x_bufsize, newsize); -- cgit v1.2.1