The wide character support is handled by ncursesw. Depending on your distro, ncurses may or may not point there (seemingly not in yours).
Try using -lncursesw
instead of -lncurses
.
Also, for the locale, try calling setlocale(LC_ALL, "")
More Related Contents:
- Printing UTF-8 strings with printf – wide vs. multibyte string literals
- How to detect UTF-8 in plain C?
- Light C Unicode Library [closed]
- Undefined reference to `initscr’ Ncurses
- C programming: How to program for Unicode?
- How to make ncurses display UTF-8 chars correctly in C?
- How to get Ctrl, Shift or Alt with getch() ncurses?
- Convert UTF-16 to UTF-8 under Windows and Linux, in C
- Is there a way to convert from UTF8 to ISO-8859-1?
- Printing a Unicode Symbol in C
- Statically link ncurses to program
- ncurses multi colors on screen
- How to make win32 console recognize ANSI/VT100 escape sequences in `c`?
- C: unable to print from file
- How do you allow spaces to be entered using scanf?
- Understanding typedefs for function pointers in C
- How do I check OS with a preprocessor directive?
- C: socket connection timeout
- What does ## mean for the C(C++) preprocessor?
- Why does a space in my scanf statement make a difference? [duplicate]
- Dynamically create an array of strings with malloc
- What is the format specifier for unsigned short int?
- C preprocessor: expand macro in a #warning
- How to use C library created by MATLAB Coder codegen in C program with emxArray arguments?
- Using sizeof() on malloc’d memory [duplicate]
- bind socket to network interface
- What does _(“text”), i.e. underscore bracket char, do? [duplicate]
- pow() isn’t defined [closed]
- How to work with external libraries when cross compiling?
- How to write/read to FLASH on STM32F4, Cortex M4