[gnome-system-tools/users-ui-redesign] Fix handling of high case and digits in new user Real name



commit 05f07ad2146456b9e6c866a7933f877cf08de31c
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Sat Nov 28 12:59:52 2009 +0100

    Fix handling of high case and digits in new user Real name
    
    We were not using lower case string because of a typo. The first letter was also not detected as such because of the variables confusion.

 src/users/user-settings.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/users/user-settings.c b/src/users/user-settings.c
index 698eb84..b3fb5be 100644
--- a/src/users/user-settings.c
+++ b/src/users/user-settings.c
@@ -856,7 +856,7 @@ on_user_new_name_changed (GtkEditable *user_name, gpointer user_data)
 	 * the few allowed symbols, and ensure the first char is a letter */
 	stripped_name = g_strnfill (strlen (lc_name) + 1, '\0');
 	i = 0;
-	for (c = ascii_name; *c; c++) {
+	for (c = lc_name; *c; c++) {
 		if ( (c == lc_name && !g_ascii_islower (*c))
 		     || !(g_ascii_isdigit (*c) || g_ascii_islower (*c)
 		          || *c == ' ' || *c == '-' || *c == '.' || *c == '_'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]