[gdm] Look for list of available locales in /usr/lib/locale
- From: Ray Strode <halfline src gnome org>
- To: svn-commits-list gnome org
- Subject: [gdm] Look for list of available locales in /usr/lib/locale
- Date: Fri, 17 Jul 2009 18:07:57 +0000 (UTC)
commit 78bdc50a12d4635cf87673176796c80945650db8
Author: Vincent Untz <vuntz gnome org>
Date: Fri Jul 17 14:05:47 2009 -0400
Look for list of available locales in /usr/lib/locale
Previously, it was looking in /usr/share/locale
which isn't right. This only affects distributions
which don't have a locale-archive file.
See http://bugzilla.gnome.org/show_bug.cgi?id=570003
gui/simple-greeter/gdm-languages.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-languages.c b/gui/simple-greeter/gdm-languages.c
index 429ba28..b8c6987 100644
--- a/gui/simple-greeter/gdm-languages.c
+++ b/gui/simple-greeter/gdm-languages.c
@@ -481,7 +481,7 @@ select_dirs (const struct dirent *dirent)
struct stat st;
char *path;
- path = g_build_filename (GNOMELOCALEDIR, dirent->d_name, NULL);
+ path = g_build_filename (LIBLOCALEDIR, dirent->d_name, NULL);
if (g_stat (path, &st) == 0) {
mode = st.st_mode;
}
@@ -501,7 +501,7 @@ collect_locales_from_directory (void)
int ndirents;
int cnt;
- ndirents = scandir (GNOMELOCALEDIR, &dirents, select_dirs, alphasort);
+ ndirents = scandir (LIBLOCALEDIR, &dirents, select_dirs, alphasort);
for (cnt = 0; cnt < ndirents; ++cnt) {
add_locale (dirents[cnt]->d_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]