vcl/qa/cppunit/text.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 12b519fbc3685a83bd6bf05052d26d9ce551243a
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Feb 4 15:13:28 2022 +0000
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Feb 7 15:11:50 2022 +0100

    this test assumes KacstBook has no Latin glyphs
    
    which is true for the one bundled with LibreOffice but is not
    true for the fedora one (kacst-book-fonts-2.0-26.fc35), but
    neither of them have Cyrillic glyphs
    
    Change-Id: Ide8b84502886c7b9e0bc4fcef4685b4b89ec2bc3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129436
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/vcl/qa/cppunit/text.cxx b/vcl/qa/cppunit/text.cxx
index 072a0d0a1f98..3647589a38d1 100644
--- a/vcl/qa/cppunit/text.cxx
+++ b/vcl/qa/cppunit/text.cxx
@@ -690,7 +690,8 @@ void 
VclTextTest::testImplLayoutArgs_PrepareFallback_precalculatedglyphs()
     ScopedVclPtrInstance<VirtualDevice> pVirDev;
     pVirDev->SetFont(aFont);
 
-    const OUString sTestString = "The quick\n jumped over";
+    const OString sUTF8String(u8"Тхе яуицк\n ыумпед овер");
+    const OUString sTestString(OUString::fromUtf8(sUTF8String));
     std::unique_ptr<SalLayout> pLayout
         = pVirDev->ImplLayout(sTestString, 0, sTestString.getLength(), 
Point(0, 0), 0, {},
                               SalLayoutFlags::GlyphItemsOnly);
@@ -698,7 +699,8 @@ void 
VclTextTest::testImplLayoutArgs_PrepareFallback_precalculatedglyphs()
     SalLayoutGlyphsImpl* pGlyphsImpl = aGlyphs.Impl(1);
 
     vcl::text::ImplLayoutArgs aArgs(sTestString, 0, sTestString.getLength(),
-                                    SalLayoutFlags::BiDiRtl, 
LanguageTag(LANGUAGE_LATIN), nullptr);
+                                    SalLayoutFlags::BiDiRtl, 
LanguageTag(LANGUAGE_RUSSIAN),
+                                    nullptr);
 
     aArgs.PrepareFallback(pGlyphsImpl);
 

Reply via email to