summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-04 16:09:44 +0100
committerBenBE <BenBE@geshi.org>2020-12-05 20:01:10 +0100
commitf91368002058239bcee36a4825a5b0692c37d77a (patch)
treede508f001b6c8156f4378453a013f824682e22a8
parentf0a9dfc37e4e13d4e697f5d15facb0b905747e15 (diff)
Hide degree character without wide ncurses support
-rw-r--r--CRT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CRT.c b/CRT.c
index 6c8f0b31..192a6aca 100644
--- a/CRT.c
+++ b/CRT.c
@@ -80,13 +80,13 @@ static const char* initDegreeSign(void) {
#ifdef HAVE_LIBNCURSESW
if (CRT_utf8)
return "\xc2\xb0";
-#endif
static char buffer[4];
// this might fail if the current locale does not support wide characters
int r = snprintf(buffer, sizeof(buffer), "%lc", 176);
if (r > 0)
return buffer;
+#endif
return "";
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy