# HG changeset patch # User Sadrul Habib Chowdhury # Date 1182289642 0 # Node ID 1bb3b07a6879021ce453d152f78aee64eeeef6e4 # Parent 9cb31b7c2dd6bba46fd973514a27ad7bc4e51487 Detect wide character non-support at compile time, if possible. diff -r 9cb31b7c2dd6 -r 1bb3b07a6879 finch/libgnt/gntmain.c --- a/finch/libgnt/gntmain.c Tue Jun 19 19:23:25 2007 +0000 +++ b/finch/libgnt/gntmain.c Tue Jun 19 21:47:22 2007 +0000 @@ -429,10 +429,14 @@ setup_io(); +#ifdef NO_WIDECHAR + ascii_only = TRUE; +#else if (locale && (strstr(locale, "UTF") || strstr(locale, "utf"))) ascii_only = FALSE; else ascii_only = TRUE; +#endif initscr(); typeahead(-1);