diff options
Diffstat (limited to 'src/gui/curses/gui-curses-bar-window.c')
-rw-r--r-- | src/gui/curses/gui-curses-bar-window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c index 6f143cd33..8c6749cd8 100644 --- a/src/gui/curses/gui-curses-bar-window.c +++ b/src/gui/curses/gui-curses-bar-window.c @@ -332,7 +332,7 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window, 1); break; default: - next_char = utf8_next_char (string); + next_char = (char *)utf8_next_char (string); if (!next_char) break; @@ -473,6 +473,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window, content = gui_bar_window_content_get_with_filling (bar_window, window); if (content) { + utf8_normalize (content, '?'); if ((filling == GUI_BAR_FILLING_HORIZONTAL) && (bar_window->scroll_x > 0)) { |