Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/text
Modified Files:
ewl_text.c
Log Message:
- formatting
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/text/ewl_text.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ewl_text.c 11 Nov 2007 08:03:40 -0000 1.13
+++ ewl_text.c 4 Dec 2007 04:35:35 -0000 1.14
@@ -359,7 +359,7 @@
char text[] = "This a valid UTF-8 string, although it contains "
"at the moment only 7-bit ascii code.\n"
" This will be changed later!";
- const char * returned_text;
+ const char *returned_text;
unsigned char *utext;
utext = (unsigned char *)text;
@@ -370,19 +370,18 @@
/* insert some invalid bytes */
utext[2] = 254;
utext[4] = 0xA4;
+
/* insert the euro sign without the 3rd byte */
utext[10] = 0xE2;
utext[11] = 0x82;
- /*
- * set a valid UTF-8 string
- */
+
+ /* set a valid UTF-8 string */
ewl_text_text_set(EWL_TEXT(t), text);
returned_text = ewl_text_text_get(EWL_TEXT(t));
- if (!returned_text) {
- snprintf(buf, len, "ewl_text_text_get() returned a "
- "NULL-pointer");
- }
+ if (!returned_text)
+ snprintf(buf, len, "ewl_text_text_get() returned a NULL
pointer");
+
else if (!strcmp(text, returned_text)
|| returned_text[2] < 0
|| returned_text[4] < 0
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs