From 4101c1accbab07629648cd260d30d704f60e894b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 27 Nov 2018 13:50:28 +0100 Subject: [PATCH] locale-util: add unicode bullet to special glyphs --- src/basic/locale-util.c | 2 ++ src/basic/locale-util.h | 1 + src/test/test-locale-util.c | 1 + 3 files changed, 4 insertions(+) diff --git a/src/basic/locale-util.c b/src/basic/locale-util.c index 7e479d605a..b2ef66392e 100644 --- a/src/basic/locale-util.c +++ b/src/basic/locale-util.c @@ -365,6 +365,7 @@ const char *special_glyph(SpecialGlyph code) { [TREE_SPACE] = " ", [TRIANGULAR_BULLET] = ">", [BLACK_CIRCLE] = "*", + [BULLET] = "*", [ARROW] = "->", [MDASH] = "-", [ELLIPSIS] = "...", @@ -381,6 +382,7 @@ const char *special_glyph(SpecialGlyph code) { [TREE_SPACE] = " ", /* */ [TRIANGULAR_BULLET] = "\342\200\243", /* ‣ */ [BLACK_CIRCLE] = "\342\227\217", /* ● */ + [BULLET] = "\342\200\242", /* • */ [ARROW] = "\342\206\222", /* → */ [MDASH] = "\342\200\223", /* – */ [ELLIPSIS] = "\342\200\246", /* … */ diff --git a/src/basic/locale-util.h b/src/basic/locale-util.h index ea624e9908..2aa2bef8c5 100644 --- a/src/basic/locale-util.h +++ b/src/basic/locale-util.h @@ -45,6 +45,7 @@ typedef enum { TREE_SPACE, TRIANGULAR_BULLET, BLACK_CIRCLE, + BULLET, ARROW, MDASH, ELLIPSIS, diff --git a/src/test/test-locale-util.c b/src/test/test-locale-util.c index 6d0f24eeea..a1d4307eb5 100644 --- a/src/test/test-locale-util.c +++ b/src/test/test-locale-util.c @@ -77,6 +77,7 @@ static void dump_special_glyphs(void) { dump_glyph(TREE_SPACE); dump_glyph(TRIANGULAR_BULLET); dump_glyph(BLACK_CIRCLE); + dump_glyph(BULLET); dump_glyph(ARROW); dump_glyph(MDASH); dump_glyph(ELLIPSIS);