summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-06-17 14:27:03 +0100
committerMichael Meeks <michael.meeks@suse.com>2013-06-17 14:27:03 +0100
commit821446a0be326c0065c827ffcd4670c113c78755 (patch)
tree96dd4aae8d8fa463c5aef33048830ca130a1b7ff /vcl/qa/cppunit
parent3f1fecdbc784ab2c98321b7de5edfedef690c77c (diff)
Use hex numbers for in-line Arabic / UTF-8 string.
Change-Id: I89d5420ad16e7dbfa1f3b6472d78162dffef59c4
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r--vcl/qa/cppunit/complextext.cxx11
1 files changed, 10 insertions, 1 deletions
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 );