diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-10-30 09:48:44 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-11-02 14:19:32 +0100 |
commit | 3b516db71d7e394b74653dfd81c27a7b6a65d453 (patch) | |
tree | 568a58ab7fdf87d0d7c31911a3fa54ef0d6576c5 | |
parent | sd-netlink: add call to query sd_event object an sd_netlink object is attache... (diff) | |
download | systemd-3b516db71d7e394b74653dfd81c27a7b6a65d453.tar.xz systemd-3b516db71d7e394b74653dfd81c27a7b6a65d453.zip |
glyph-util: add computer disk + world emoji
-rw-r--r-- | src/basic/glyph-util.c | 2 | ||||
-rw-r--r-- | src/basic/glyph-util.h | 2 | ||||
-rw-r--r-- | src/test/test-locale-util.c | 4 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/basic/glyph-util.c b/src/basic/glyph-util.c index bac75a053a..803bdd90e2 100644 --- a/src/basic/glyph-util.c +++ b/src/basic/glyph-util.c @@ -134,6 +134,8 @@ const char *special_glyph_full(SpecialGlyph code, bool force_utf) { [SPECIAL_GLYPH_SPARKLES] = u8"✨", [SPECIAL_GLYPH_LOW_BATTERY] = u8"🪫", [SPECIAL_GLYPH_WARNING_SIGN] = u8"⚠️", + [SPECIAL_GLYPH_COMPUTER_DISK] = u8"💽", + [SPECIAL_GLYPH_WORLD] = u8"🌍", }, }; diff --git a/src/basic/glyph-util.h b/src/basic/glyph-util.h index 451ec9af25..a7709976e1 100644 --- a/src/basic/glyph-util.h +++ b/src/basic/glyph-util.h @@ -47,6 +47,8 @@ typedef enum SpecialGlyph { SPECIAL_GLYPH_SPARKLES, SPECIAL_GLYPH_LOW_BATTERY, SPECIAL_GLYPH_WARNING_SIGN, + SPECIAL_GLYPH_COMPUTER_DISK, + SPECIAL_GLYPH_WORLD, _SPECIAL_GLYPH_MAX, _SPECIAL_GLYPH_INVALID = -EINVAL, } SpecialGlyph; diff --git a/src/test/test-locale-util.c b/src/test/test-locale-util.c index 9cf0bf42bf..39f71c67d3 100644 --- a/src/test/test-locale-util.c +++ b/src/test/test-locale-util.c @@ -82,7 +82,7 @@ TEST(keymaps) { #define dump_glyph(x) log_info(STRINGIFY(x) ": %s", special_glyph(x)) TEST(dump_special_glyphs) { - assert_cc(SPECIAL_GLYPH_WARNING_SIGN + 1 == _SPECIAL_GLYPH_MAX); + assert_cc(SPECIAL_GLYPH_WORLD + 1 == _SPECIAL_GLYPH_MAX); log_info("is_locale_utf8: %s", yes_no(is_locale_utf8())); @@ -125,6 +125,8 @@ TEST(dump_special_glyphs) { dump_glyph(SPECIAL_GLYPH_SPARKLES); dump_glyph(SPECIAL_GLYPH_LOW_BATTERY); dump_glyph(SPECIAL_GLYPH_WARNING_SIGN); + dump_glyph(SPECIAL_GLYPH_COMPUTER_DISK); + dump_glyph(SPECIAL_GLYPH_WORLD); } DEFINE_TEST_MAIN(LOG_INFO); |