#include <glib.h>
    
int main ()
{
	const char *str1 = "\320\264\320\264";
	const char *str2 = "\320\277\320\277";
	char *coll1, *coll2;
	int i;

	g_assert (g_utf8_validate (str1, -1, NULL));
	g_assert (g_utf8_validate (str2, -1, NULL));

	coll1 = g_utf8_collate_key (str1, -1);
	coll2 = g_utf8_collate_key (str2, -1);
	
	for (i = 0; i < strlen (coll1); ++i)
		g_print ("<%d>", coll1[i]);
	g_print ("\n");
	
	g_assert (strcmp (coll1, coll2));
}
