Index: ChangeLog
===================================================================
RCS file: /export/cvs/head/glib/ChangeLog,v
retrieving revision 1.2081
diff -p -u -5 -r1.2081 ChangeLog
--- ChangeLog	5 Sep 2005 18:20:23 -0000	1.2081
+++ ChangeLog	6 Sep 2005 12:39:28 -0000
@@ -1,5 +1,11 @@
+2005-09-06  Dinoop Thomas  <dinoop.thomas@wipro.com>
+	
+	* glib/gutf8.c : Changed the range of the valid unicode character so that
+	+U708B7 becomes an invalid unicode.
+	Fixes bug #314453.
+
 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
 
 	* glib/gmappedfile.c (g_mapped_file_new): Report an error
 	if the file is too large.  (#315275, Kjartan Maraas)
 
Index: glib/gutf8.c
===================================================================
RCS file: /export/cvs/head/glib/glib/gutf8.c,v
retrieving revision 1.43
diff -p -u -5 -r1.43 gutf8.c
--- glib/gutf8.c	18 Aug 2005 09:30:13 -0000	1.43
+++ glib/gutf8.c	6 Sep 2005 12:40:03 -0000
@@ -95,11 +95,13 @@
       (Result) <<= 6;							      \
       (Result) |= ((Chars)[(Count)] & 0x3f);				      \
     }
 
 #define UNICODE_VALID(Char)                   \
-    ((Char) < 0x110000 &&                     \
+     (((Char) < 0xFFFF ||                     \
+      ((Char) < 0x30000 && (Char) > 0x10000) || \
+      ((Char) < 0x110000 && (Char) > 0xE0000)) && \
      (((Char) & 0xFFFFF800) != 0xD800) &&     \
      ((Char) < 0xFDD0 || (Char) > 0xFDEF) &&  \
      ((Char) & 0xFFFE) != 0xFFFE)
    
      
