Ignore:
Timestamp:
Mar 8, 2006, 11:29:00 PM (14 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_conio.c

    r553 r557  
    104104    for(n = kk->qq->height * kk->qq->width; n--; )
    105105    {
    106         *screen++ = *chars++ & 0x7f;
     106        uint32_t c = *chars++;
     107
     108        if(c > 0x00000020 && c < 0x00000080)
     109            *screen++ = (char)c;
     110        else
     111            *screen++ = ' ';
     112
    107113        *screen++ = *attr++;
    108114    }
Note: See TracChangeset for help on using the changeset viewer.