judy@hsu.esd.sgi.com (Judy Hsu) (12/05/90)
I wrote a program to test the routines for converting between compound string and compound text which are not tested by OSF/Motif Testsuite. The program first creates string, converts string to CT, then converts CT back to string, then uses XmStringComp and XmStringByteComp to compare the original created string with the resulted string after the conversions. This program results core dumps in the following conditions: 1. Using XmStringDirectionCreate to create a string consisting of a single specified direction. Converting this string to CT results core dump. 2. Using XmStringSeparatorCreate to create a string containing a single separator component. Converting this string to CT results core dump. 3. Using XmStringByteComp to compare the string created by XmStringCreate with the same string converted back from CT returns False. Is it correct that string1 with no direction is not the same (byte for byte) as string2 which is converted from CT, and CT is converted from string1 ? Does anyone know if the above results are correct? OR is there any document that can tell me what should be expected in those conditions? AND What are the valid strings that can be converted to compound text? Thanks in advance, Judy Hsu