GNOME Bugzilla – Bug 320463
glib-cvs 'make check' fails on "run-collate-tests.sh" on OSX 10.4.3
Last modified: 2011-02-18 15:49:17 UTC
Please describe the problem: 'make check' of glib-cvs (1 Nov 05) fails 1/43: 2d1 < GTK+ 8a8 > GTK+ Test failed: unexpected error when using g_utf8_collate() on ./collate/collate-1.in FAIL: run-collate-tests.sh ===================================================================== 1 of 43 tests failed Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=glib ===================================================================== make[4]: *** [check-TESTS] Error 1 make[3]: *** [check-am] Error 2 make[2]: *** [check-recursive] Error 1 make[1]: *** [check-recursive] Error 1 make: *** [check] Error 2 Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
I think the test needs to set the locale. Does it still fail if you run it with LANG=en_US.UTF8 ?
hi matthias, repeating 'make check' with: LANG=C LANG=en_US LANG=en_US.UTF8 yields the same results: 1 'fail', as above
setting LC_COLLATE=en_US or en_US.UTF-8 in the script should fix it, but that assumes those locales exist on the system. Could also change the test case to not have mixed case at all, but perhaps that doesn't test what needs to be tested then? Perhaps set LC_COLLATE=C and assume case sensitive sorting. Then again, that might also not test what needs to be tested.
*** Bug 321985 has been marked as a duplicate of this bug. ***
* tests/run-collate-tests.sh: Run the collation tests explicitly in en_US locale. (#320463)
*** Bug 323034 has been marked as a duplicate of this bug. ***