term_putc: remove iscntrl check #1316

pull/1338/head
nick black 4 years ago
parent d66042306f
commit b4d80ebfaf
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -582,8 +582,8 @@ static int
term_putc(FILE* out, const egcpool* e, const nccell* c){
if(cell_simple_p(c)){
//fprintf(stderr, "[%.4s] %08x\n", (const char*)&c->gcluster, c->gcluster); }
uint32_t firstbyte = htole(c->gcluster) & 0xff;
if(c->gcluster == 0 || iscntrl(firstbyte)){
// we must not have any 'cntrl' characters at this point
if(c->gcluster == 0){
if(ncfputc(' ', out) == EOF){
return -1;
}

Loading…
Cancel
Save