[gnome-control-center] datetime: Fix test-endianess on OpenSUSE
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: Fix test-endianess on OpenSUSE
- Date: Tue, 5 Apr 2011 08:41:19 +0000 (UTC)
commit 8390f73f4b9f3a1c1bc9f9dfe43684bd6f6be82d
Author: Bastien Nocera <hadess hadess net>
Date: Tue Apr 5 09:40:30 2011 +0100
datetime: Fix test-endianess on OpenSUSE
https://bugzilla.gnome.org/show_bug.cgi?id=646780
panels/datetime/test-endianess.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/panels/datetime/test-endianess.c b/panels/datetime/test-endianess.c
index 1086732..490df17 100644
--- a/panels/datetime/test-endianess.c
+++ b/panels/datetime/test-endianess.c
@@ -39,8 +39,14 @@ int main (int argc, char **argv)
}
dir = g_dir_open ("/usr/share/i18n/locales/", 0, NULL);
- if (dir == NULL)
- return 1;
+ if (dir == NULL) {
+ /* Try with /usr/share/locale/
+ * https://bugzilla.gnome.org/show_bug.cgi?id=646780 */
+ dir = g_dir_open ("/usr/share/locale/", 0, NULL);
+ if (dir == NULL) {
+ return 1;
+ }
+ }
while ((name = g_dir_read_name (dir)) != NULL)
print_endianess (name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]