summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-04-11 19:49:50 +0200
committerLennart Poettering <lennart@poettering.net>2018-04-18 12:35:45 +0200
commitb77f5e2773f0ba12022315a0edde3d2c9f062923 (patch)
tree80ab8d61ef3ea9551a50bd52b10498ed482c81bf /src/basic
parent12777909c9cbf4217aecbbb38de97bac5252fc5b (diff)
downloadsystemd-b77f5e2773f0ba12022315a0edde3d2c9f062923.tar.gz
systemd-b77f5e2773f0ba12022315a0edde3d2c9f062923.tar.bz2
systemd-b77f5e2773f0ba12022315a0edde3d2c9f062923.zip
locale: add ellipsis as special glyph
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/locale-util.c4
-rw-r--r--src/basic/locale-util.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/basic/locale-util.c b/src/basic/locale-util.c
index 01ab44d9ae..9c3f757da7 100644
--- a/src/basic/locale-util.c
+++ b/src/basic/locale-util.c
@@ -365,10 +365,11 @@ const char *special_glyph(SpecialGlyph code) {
[BLACK_CIRCLE] = "*",
[ARROW] = "->",
[MDASH] = "-",
+ [ELLIPSIS] = "..."
},
/* UTF-8 */
- [ true ] = {
+ [true] = {
[TREE_VERTICAL] = "\342\224\202 ", /* │ */
[TREE_BRANCH] = "\342\224\234\342\224\200", /* ├─ */
[TREE_RIGHT] = "\342\224\224\342\224\200", /* └─ */
@@ -377,6 +378,7 @@ const char *special_glyph(SpecialGlyph code) {
[BLACK_CIRCLE] = "\342\227\217", /* ● */
[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 510064232e..144e2bc630 100644
--- a/src/basic/locale-util.h
+++ b/src/basic/locale-util.h
@@ -53,6 +53,7 @@ typedef enum {
BLACK_CIRCLE,
ARROW,
MDASH,
+ ELLIPSIS,
_SPECIAL_GLYPH_MAX
} SpecialGlyph;