tiny patch to fix tests



This patch just makes a couple unicode tests compile (apparently after
changes to iochannel). OK to commit?

-Seth


? glib_patch
? sgml
Index: tests/unicode-collate.c
===================================================================
RCS file: /cvs/gnome/glib/tests/unicode-collate.c,v
retrieving revision 1.2
diff -u -p -r1.2 unicode-collate.c
--- tests/unicode-collate.c	2001/07/07 02:42:49	1.2
+++ tests/unicode-collate.c	2001/07/07 20:10:24
@@ -41,7 +41,7 @@ int main (int argc, char **argv)
 
   if (argc == 2)
     {
-      in = g_io_channel_new_file (argv[1], "r", &error);
+      in = g_io_channel_new_file (argv[1], G_IO_FILE_MODE_READ, &error);
       if (!in)
 	{
 	  fprintf (stderr, "Cannot open %s: %s\n", argv[1], error->message);
Index: tests/unicode-normalize.c
===================================================================
RCS file: /cvs/gnome/glib/tests/unicode-normalize.c,v
retrieving revision 1.3
diff -u -p -r1.3 unicode-normalize.c
--- tests/unicode-normalize.c	2001/07/07 02:42:49	1.3
+++ tests/unicode-normalize.c	2001/07/07 20:10:25
@@ -144,7 +144,7 @@ int main (int argc, char **argv)
   if (argc == 3)
     line_to_do = atoi(argv[2]);
 
-  in = g_io_channel_new_file (argv[1], "r", &error);
+  in = g_io_channel_new_file (argv[1], G_IO_FILE_MODE_READ, &error);
   if (!in)
     {
       fprintf (stderr, "Cannot open %s: %s\n", argv[1], error->message);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]