uri-test.c bug



Hi,

glib-1.3.13/tests/uri-test.c uses unsetenv() on unix systems.

unsetenv() is only present on BSD based systens
SonOS, AIX does not have it implemented => the test does not compile/link

One should use putenv() instead
here the patch:

-------------- cut --------------
--- glib-1.3.13.org/tests/uri-test.c	Wed Jan 23 15:41:23 2002
+++ glib-1.3.13/tests/uri-test.c	Tue Feb 12 12:03:30 2002
@@ -314,7 +314,7 @@
       char *argv[])
 {
 #ifdef G_OS_UNIX
-  unsetenv ("G_BROKEN_FILENAMES");
+  putenv ("G_BROKEN_FILENAMES");
 #endif
 
   run_to_uri_tests ();
-------------- cut --------------

Regards,
-- 
Miroslaw Dobrzanski-Neumann

MOSAIC SOFTWARE AG
Base Development and Research
Tel +49-2225-882-291
Fax +49-2225-882-201
E-mail: mne mosaic-ag com




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