From 374417024147717d195e1830bb72d057995b0aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 12 Jan 2019 15:46:13 +0100 Subject: Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/renderer.cpp') diff --git a/src/renderer.cpp b/src/renderer.cpp index 2fa180f..5a11e6a 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -150,7 +150,7 @@ namespace KioSword else setGlobalOption("Variants", "Primary Readings"); - LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName(options.locale()); + LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName(options.locale().latin1()); } /** Return an HTML hyperlinked list of all modules, @@ -481,7 +481,7 @@ namespace KioSword doindex = true; break; } - lk = vk->ParseVerseList(ref, "Genesis 1:1", true); + lk = vk->ParseVerseList(ref.utf8(), "Genesis 1:1", true); if (lk.Count() == 0) { text += "

" + i18n("Couldn't find reference '%1'.").arg(ref) + "

"; doindex = true; -- cgit v1.2.1