emoji_styling = AUTO_BOOLEAN_FALSE;
}
-/* Emoji warning prefix. */
-static std::string warning_prefix = "⚠️ ";
+/* Emoji warning prefix:
+ - u26A0: Warning Sign: ⚠
+ - uFE0F: Variation Selector-16 (VS16)
+ The VS16 forces "Emoji" presentation. It is needed because the default
+ presentation for Warning Sign is "Text". Together, we get: ⚠️ . */
+static std::string warning_prefix = u8"\u26A0\uFE0F ";
/* Implement 'show style warning-prefix'. */
gdb_puts (warning_prefix.c_str (), file);
}
-/* Emoji error prefix. */
-static std::string error_prefix = "❌️ ";
+/* Emoji error prefix:
+ - u274C: Cross Mark: ❌
+ No VS16 is needed because the default presentation for Cross Mark is
+ "Emoji". */
+static std::string error_prefix = u8"\u274C ";
/* Implement 'show style error-prefix'. */
gdb_test_no_output "set host-charset UTF-8"
# Chosen since it will print an error.
gdb_test "maint translate-address" \
- "❌️ requires argument.*" \
+ "❌ requires argument.*" \
"emoji output"
gdb_test_no_output "set style error-prefix abcd:" \