diff options
author | Jonas Fonseca <fonseca@diku.dk> | 2012-08-10 09:57:53 -0400 |
---|---|---|
committer | Jonas Fonseca <fonseca@diku.dk> | 2012-10-02 10:40:57 -0400 |
commit | 29ea9b6c8aa3f673ca311fbda5685c2efe375092 (patch) | |
tree | ef66ad36edacef0a7dd7464f6f3fab222def0993 | |
parent | 690c03da4e0119029fd7402bfead149d73599b68 (diff) |
[GH #72] Convert output to ASCII//TRANSLIT unless using ncurseswno-ncursesw
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | tig.c | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -46,6 +46,8 @@ Improvements: and diff view, e.g. `tig --no-walk --stdin < cherry-picks.txt`. - Add option to disable focusing of the child view when it's opened. Disable using: `set focus-child = no`. (GH #83) + - Convert output to ASCII//TRANSLIT when ncurses has no wide-char + support. (GH #72) Bug fixes: @@ -8245,9 +8245,13 @@ main(int argc, const char *argv[]) signal(SIGINT, quit); signal(SIGPIPE, SIG_IGN); +#if defined(HAVE_NCURSESW) || defined(NCURSES_WIDECHAR) if (setlocale(LC_ALL, "")) { codeset = nl_langinfo(CODESET); } +#else + codeset = "ascii"; +#endif foreach_view(view, i) { add_keymap(&view->ops->keymap); |