? Unsaved Document 1
Index: gtksourceview/gtksourceiter.c
===================================================================
RCS file: /cvs/gnome/gtksourceview/gtksourceview/gtksourceiter.c,v
retrieving revision 1.8
diff -u -p -r1.8 gtksourceiter.c
--- gtksourceview/gtksourceiter.c	24 Jan 2005 16:40:33 -0000	1.8
+++ gtksourceview/gtksourceiter.c	25 Feb 2005 10:32:35 -0000
@@ -39,15 +39,17 @@
 static const gchar *
 pointer_from_offset_skipping_decomp (const gchar *str, gint offset)
 {
-	gchar *normal;
+	gchar *casefold, *normal;
 	const gchar *p, *q;
 
 	p = str;
 	while (offset > 0)
 	{
 		q = g_utf8_next_char (p);
-		normal = g_utf8_normalize (p, q - p, G_NORMALIZE_ALL);
+		casefold = g_utf8_casefold (p, q - p);
+		normal = g_utf8_normalize (casefold, -1, G_NORMALIZE_ALL);
 		offset -= g_utf8_strlen (normal, -1);
+		g_free (casefold);
 		g_free (normal);
 		p = q;
 	}
