Ignore:
Timestamp:
Mar 8, 2006, 11:29:00 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Make output drivers more error resilient when handling UTF-32 characters, by simply ignoring everything non ASCII :-)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_ncurses.c

    r553 r557  
    193193        for(x = kk->qq->width; x--; )
    194194        {
     195            uint32_t c = *chars++;
     196
    195197            attrset(kk->drv.p->attr[*attr++]);
    196             addch(*chars++ & 0x7f);
     198            if(c > 0x00000020 && c < 0x00000080)
     199                addch((char)c);
     200            else
     201                addch(' ');
    197202        }
    198203    }
Note: See TracChangeset for help on using the changeset viewer.