Skip to content

Commit

Permalink
core: fix display of invalid UTF-8 chars in bars (issue #218)
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed Jun 27, 2015
1 parent 0ff8d7b commit ecc3a2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog.asciidoc
Expand Up @@ -19,6 +19,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]

=== New features

* core: fix display of invalid UTF-8 chars in bars
* core: allow pointer as list name in evaluation of hdata (closes #450)
* core: add signal "signal_sighup"
* api: add function string_eval_path_home()
Expand Down
1 change: 1 addition & 0 deletions src/gui/curses/gui-curses-bar-window.c
Expand Up @@ -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))
{
Expand Down

0 comments on commit ecc3a2a

Please sign in to comment.