summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2014-07-28 09:58:49 -0400
committerRay Strode <rstrode@redhat.com>2014-07-28 09:58:49 -0400
commit40c2dd36c5da64919f69dd4f37de2ecf19f23058 (patch)
treeadb4fdce823ecb1c928027806e10ad47a5f64710
parent84eb4381db85877a9a56b35994e6c10d43e46ebe (diff)
text-step-bar: use correct utf-8 multibyte sequence for ■
For some reason in commit 113526408c5706c9efc7f43c3f8258354e762677 I commited the sequence \x25\x96\xa0 in place of the block character that was there before. I don't know where I got \x25 from, but it's not right (and couldn't even be right since the high order bit isn't set which is a requirement for the first byte in multi-byte utf-8 sequences). This commit uses \xe2 instead which I got from doing: $ echo ■ | xxd 0000000: e296 a00a ....
-rw-r--r--src/libply-splash-core/ply-text-step-bar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libply-splash-core/ply-text-step-bar.c b/src/libply-splash-core/ply-text-step-bar.c
index d070e9a6..568b9a21 100644
--- a/src/libply-splash-core/ply-text-step-bar.c
+++ b/src/libply-splash-core/ply-text-step-bar.c
@@ -91,7 +91,7 @@ ply_text_step_bar_draw (ply_text_step_bar_t *step_bar)
PLY_TERMINAL_COLOR_BROWN);
/* U+25A0 BLACK SQUARE */
- ply_text_display_write (step_bar->display, "%s", "\x25\x96\xa0");
+ ply_text_display_write (step_bar->display, "%s", "\xe2\x96\xa0");
ply_text_display_write (step_bar->display, "%c", ' ');
}