From: Jonas Fonseca Date: Sun, 10 Apr 2011 16:19:10 +0000 (-0400) Subject: Accept 'utf-8' for the line-graphics option as indicated in the docs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c8af48119c23e9cc90bbc02b84cf6dca7400cdfc;p=tig.git Accept 'utf-8' for the line-graphics option as indicated in the docs Reported by Bernhard Walle. --- diff --git a/NEWS b/NEWS index 02ec3ef..d4a3db2 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,7 @@ Improvements: Bug fixes: - Expand %(directory) to . for the root directory. (GH-3) + - Accept 'utf-8' for the line-graphics option as indicated in the docs. tig-0.17 -------- diff --git a/tig.c b/tig.c index eec5b0a..51c84b8 100644 --- a/tig.c +++ b/tig.c @@ -64,14 +64,14 @@ static bool prompt_menu(const char *prompt, const struct menu_item *items, int * enum graphic { GRAPHIC_ASCII = 0, GRAPHIC_DEFAULT, - GRAPHIC_UTF8 + GRAPHIC_UTF_8 }; static const struct enum_map graphic_map[] = { #define GRAPHIC_(name) ENUM_MAP(#name, GRAPHIC_##name) GRAPHIC_(ASCII), GRAPHIC_(DEFAULT), - GRAPHIC_(UTF8) + GRAPHIC_(UTF_8) #undef GRAPHIC_ };