From 821446a0be326c0065c827ffcd4670c113c78755 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 17 Jun 2013 14:27:03 +0100 Subject: Use hex numbers for in-line Arabic / UTF-8 string. Change-Id: I89d5420ad16e7dbfa1f3b6472d78162dffef59c4 --- vcl/qa/cppunit/complextext.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'vcl/qa/cppunit') diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx index 251909274cf8..3f03d620e377 100644 --- a/vcl/qa/cppunit/complextext.cxx +++ b/vcl/qa/cppunit/complextext.cxx @@ -33,7 +33,16 @@ void VclComplexTextTest::testArabic() #if !defined (LINUX) return; #else // only tested on Linux so far - OUString aOneTwoThree( "واحِدْ إثٍنين ثلاثةٌ" ); + const unsigned char pOneTwoThreeUTF8[] = { + 0xd9, 0x88, 0xd8, 0xa7, 0xd8, 0xad, 0xd9, 0x90, + 0xd8, 0xaf, 0xd9, 0x92, 0x20, 0xd8, 0xa5, 0xd8, + 0xab, 0xd9, 0x8d, 0xd9, 0x86, 0xd9, 0x8a, 0xd9, + 0x86, 0x20, 0xd8, 0xab, 0xd9, 0x84, 0xd8, 0xa7, + 0xd8, 0xab, 0xd8, 0xa9, 0xd9, 0x8c, 0x00 + }; + OUString aOneTwoThree( (sal_Char *)pOneTwoThreeUTF8, + SAL_N_ELEMENTS( pOneTwoThreeUTF8 ) - 1, + RTL_TEXTENCODING_UTF8 ); Window* pWin = new WorkWindow( (Window *)NULL ); CPPUNIT_ASSERT( pWin != NULL ); -- cgit