From b15870b7cb63316060a5ff565cf980a981633135 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 6 Sep 2016 11:23:43 +0200 Subject: Fix crash when trying to display non ascii characters. --- test/paintertest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/paintertest.cc') diff --git a/test/paintertest.cc b/test/paintertest.cc index 5c8cf45..69b28ff 100644 --- a/test/paintertest.cc +++ b/test/paintertest.cc @@ -116,7 +116,8 @@ public: { // Success criterion is simply to not assert in the drawing routines... GUI::Font font; - std::string someText = "Hello World"; + // a string with unicode characters + std::string someText = "Hello World - лæ"; std::size_t width = font.textWidth(someText); std::size_t height = font.textHeight(someText); -- cgit v1.2.3