[gdm] Properly restore CTYPE when canonicalizing codeset
- From: Ray Strode <halfline src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gdm] Properly restore CTYPE when canonicalizing codeset
- Date: Fri, 9 Oct 2009 02:29:57 +0000 (UTC)
commit 5948d9eb0df6c2b4013b92ecf206500cc91ac430
Author: Ray Strode <rstrode redhat com>
Date: Thu Oct 8 22:27:52 2009 -0400
Properly restore CTYPE when canonicalizing codeset
Spotted by Takao Fujiwara
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 b8c6987..8f898f1 100644
--- a/gui/simple-greeter/gdm-languages.c
+++ b/gui/simple-greeter/gdm-languages.c
@@ -222,9 +222,9 @@ make_codeset_canonical_for_locale (const char *name,
{
char *old_locale;
- old_locale = setlocale (LC_CTYPE, name);
+ old_locale = setlocale (LC_CTYPE, NULL);
- if (old_locale == NULL) {
+ if (setlocale (LC_CTYPE, name) == NULL) {
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]