glib: fix locale detection on android
authorLionel Landwerlin <llandwerlin@gmail.com>
Fri, 27 Jul 2012 12:52:17 +0000 (14:52 +0200)
committerLionel Landwerlin <llandwerlin@gmail.com>
Fri, 27 Jul 2012 17:41:05 +0000 (19:41 +0200)
commitad4f780cb427c1c37c0b0d87fac867285926eb16
tree86798ee65b74c5e1f4ae82633e38f77063c323f5
parent3339a395c298a64a9a6056b80230cc1381a6406a
glib: fix locale detection on android

g_utf8_strup() tries to call setlocale() before starting to compute
the length of its first argument. Calling setlocale() can return NULL
(as specified in the man page), and obviously that happens on android.

https://bugzilla.gnome.org/show_bug.cgi?id=680704
glib/guniprop.c