diff --git a/Makefile b/Makefile index aa288c0..184a311 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ endif # On some distros, you might have to change this to ncursesw LIBS += $(shell pkg-config --libs ncursesw 2>/dev/null || \ shell pkg-config --libs ncurses 2>/dev/null || \ - echo "-lncurses") + echo "-lncursesw") .PHONY: all clean install man dist diff --git a/screenshots/radeontop_ru_utf-8_fixed.png b/screenshots/radeontop_ru_utf-8_fixed.png new file mode 100644 index 0000000..8e00867 Binary files /dev/null and b/screenshots/radeontop_ru_utf-8_fixed.png differ diff --git a/ui.c b/ui.c index 878e88f..34b3f6b 100644 --- a/ui.c +++ b/ui.c @@ -26,6 +26,7 @@ static void printcenter(const unsigned int y, const unsigned int width, va_start(ap, fmt); #ifdef ENABLE_NLS + setlocale(LC_ALL, ""); vasprintf(&ptr, fmt, ap); const unsigned int len = mbstowcs(NULL, ptr, 0); #else