From 930ce8a944570f14dc52e5fe90a1ee3bb5d2d3e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Fri, 7 Oct 2016 17:26:56 +0200 Subject: [PATCH] Fix regression in locale support --- src/sdtui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdtui.c b/src/sdtui.c index 4487df3..fcf361f 100644 --- a/src/sdtui.c +++ b/src/sdtui.c @@ -756,7 +756,7 @@ row_buffer_append (RowBuffer *self, const gchar *str, chtype attrs) // XXX: this is very crude as it disrespects combining marks gunichar c = app_is_character_in_locale (self->app, ucs4[i]) ? ucs4[i] : '?'; - struct row_char rc = { ucs4[i], attrs, unichar_width (c) }; + struct row_char rc = { c, attrs, unichar_width (c) }; g_array_append_val (self->chars, rc); self->total_width += rc.width; }