Ignore:
Timestamp:
Mar 15, 2006, 10:57:04 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Do not fail if SLsmg_utf8_enable was not found, just disable UTF-8 support in the SLang driver.
  • Cosmetic fixes in configure.ac.
File:
1 edited

Legend:

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

    r579 r610  
    162162    SLtt_Has_Alt_Charset = 0;
    163163
     164#ifdef HAVE_SLSMG_UTF8_ENABLE
    164165    SLsmg_utf8_enable(1); /* 1 == force, 0 == disable, -1 == autodetect */
    165166    SLtt_utf8_enable(1);
     167#endif
    166168
    167169    _cucul_set_size(kk->qq, SLtt_Screen_Cols, SLtt_Screen_Rows);
     
    391393    }
    392394
     395#ifdef HAVE_SLSMG_UTF8_ENABLE
    393396    bytes = (c < 0x800) ? 2 : (c < 0x10000) ? 3 : 4;
    394397    buf[bytes] = '\0';
     
    404407
    405408    SLsmg_write_string(buf);
     409#else
     410    SLsmg_write_char(' ');
     411#endif
    406412}
    407413
     
    411417    sigwinch_kk->resize.resized = 1;
    412418
    413     signal(SIGWINCH, sigwinch_handler);;
     419    signal(SIGWINCH, sigwinch_handler);
    414420}
    415421#endif
Note: See TracChangeset for help on using the changeset viewer.