Kaydet (Commit) 821446a0 authored tarafından Michael Meeks's avatar Michael Meeks

Use hex numbers for in-line Arabic / UTF-8 string.

Change-Id: I89d5420ad16e7dbfa1f3b6472d78162dffef59c4
üst 3f1fecdb
...@@ -33,7 +33,16 @@ void VclComplexTextTest::testArabic() ...@@ -33,7 +33,16 @@ void VclComplexTextTest::testArabic()
#if !defined (LINUX) #if !defined (LINUX)
return; return;
#else // only tested on Linux so far #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 ); Window* pWin = new WorkWindow( (Window *)NULL );
CPPUNIT_ASSERT( pWin != NULL ); CPPUNIT_ASSERT( pWin != NULL );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment