From f91368002058239bcee36a4825a5b0692c37d77a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 4 Dec 2020 16:09:44 +0100 Subject: Hide degree character without wide ncurses support --- CRT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""; } -- cgit v1.2.3