make check fails depending on locale settings
Submitted by D.S. (Spider) Ljungmark
Link to original bug (#679952)
Description
The following test fails if you have locale set (But works if you unset all LC_ variables as well as LANG) :
TEST: date... (pid=4655)
/date/basic: OK
/date/empty: OK
**
ERROR:date.c:134:test_parse: assertion failed: (g_date_valid (d))
/date/dmy: OK
/date/julian: OK
/date/dates: OK
/date/parse: FAIL
GTester: last random seed: R02S022a0301b447c6c518b150a4b9174272
/bin/sh: line 1: 4001 Terminated G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=((
{RANDOM:-256} % 256)) ../../glib/gtester --verbose testing option-context option-argv0 keyfile fileutils test-printf protocol rand strfuncs string markup-parse markup-collect markup-escape markup-subparser array-test bytes hostutils gvariant mem-overflow utf8-performance utils regex base64 sequence scannerapi shell collate utf8-pointer utf8-validate utf8-misc unicode checksum hmac hash cache date node convert list slist queue tree uri dir pattern logging error bookmarkfile gdatetime timeout environment mappedfile dataset sort atomic bitlock mutex rec-mutex rwlock once cond thread slice hook mainloop private asyncqueue 1bit-mutex 642026 642026-ec 1bit-emufutex spawn-multithreaded spawn-singlethread gwakeup gwakeup-fallback unix-multithreaded unix unix-nothreads include
make[4]: *** [test-nonrecursive] Error 143
make[4]: Leaving directory /home/spider/Projects/gnome/glib/glib/tests' make[3]: *** [check-am] Error 2 make[3]: Leaving directory
/home/spider/Projects/gnome/glib/glib/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory /home/spider/Projects/gnome/glib/glib' make[1]: *** [check] Error 2 make[1]: Leaving directory
/home/spider/Projects/gnome/glib/glib'
make: *** [check-recursive] Error 1
locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC=sv_SE.utf8 LC_TIME=sv_SE.utf8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=sv_SE.utf8 LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT=sv_SE.utf8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=