summaryrefslogtreecommitdiff
path: root/src/hostname
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-03-11 15:53:18 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-03-11 15:53:18 +0900
commite5ba040fb8a4171412af7a862894fef2abffb245 (patch)
tree0f53e1677558d91f3ab4c195294aa251bcccecca /src/hostname
parent7fbbec71b16f04d2271c08b549f3caab8e0d7084 (diff)
downloadsystemd-e5ba040fb8a4171412af7a862894fef2abffb245.tar.gz
hostnamectl: use u8 literal specifier
Diffstat (limited to 'src/hostname')
-rw-r--r--src/hostname/hostnamectl.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c
index 58af5f186c..d94194d212 100644
--- a/src/hostname/hostnamectl.c
+++ b/src/hostname/hostnamectl.c
@@ -55,21 +55,21 @@ typedef struct StatusInfo {
static const char* chassis_string_to_glyph(const char *chassis) {
if (streq_ptr(chassis, "laptop"))
- return "\U0001F4BB"; /* Personal Computer */
+ return u8"💻"; /* Personal Computer */
if (streq_ptr(chassis, "desktop"))
- return "\U0001F5A5"; /* Desktop Computer */
+ return u8"🖥️"; /* Desktop Computer */
if (streq_ptr(chassis, "server"))
- return "\U0001F5B3"; /* Old Personal Computer */
+ return u8"🖳"; /* Old Personal Computer */
if (streq_ptr(chassis, "tablet"))
- return "\u5177"; /* Ideograph tool, implement; draw up, write, looks vaguely tabletty */
+ return u8"具"; /* Ideograph tool, implement; draw up, write, looks vaguely tabletty */
if (streq_ptr(chassis, "watch"))
- return "\u231A"; /* Watch */
+ return u8"⌚"; /* Watch */
if (streq_ptr(chassis, "handset"))
- return "\U0001F57B"; /* Left Hand Telephone Receiver */
+ return u8"🕻"; /* Left Hand Telephone Receiver */
if (streq_ptr(chassis, "vm"))
- return "\U0001F5B4"; /* Hard disk */
+ return u8"🖴"; /* Hard disk */
if (streq_ptr(chassis, "container"))
- return "\u2610"; /* Ballot Box */
+ return u8"☐"; /* Ballot Box */
return NULL;
}