Mercurial > pidgin
comparison finch/libgnt/gntmain.c @ 18199:1bb3b07a6879
Detect wide character non-support at compile time, if possible.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 19 Jun 2007 21:47:22 +0000 |
parents | 2b757aadddc9 |
children | 310bad6dafe4 1cb69ea47a6e |
comparison
equal
deleted
inserted
replaced
18198:9cb31b7c2dd6 | 18199:1bb3b07a6879 |
---|---|
427 | 427 |
428 locale = setlocale(LC_ALL, ""); | 428 locale = setlocale(LC_ALL, ""); |
429 | 429 |
430 setup_io(); | 430 setup_io(); |
431 | 431 |
432 #ifdef NO_WIDECHAR | |
433 ascii_only = TRUE; | |
434 #else | |
432 if (locale && (strstr(locale, "UTF") || strstr(locale, "utf"))) | 435 if (locale && (strstr(locale, "UTF") || strstr(locale, "utf"))) |
433 ascii_only = FALSE; | 436 ascii_only = FALSE; |
434 else | 437 else |
435 ascii_only = TRUE; | 438 ascii_only = TRUE; |
439 #endif | |
436 | 440 |
437 initscr(); | 441 initscr(); |
438 typeahead(-1); | 442 typeahead(-1); |
439 noecho(); | 443 noecho(); |
440 curs_set(0); | 444 curs_set(0); |