[PATCH] Fix date self checks for locales



The proposed patch fixes bug 47364 [1].

[1] http://bugzilla.gnome.org/show_bug.cgi?id=47364

-- 
Christian Neumair <chris gnome-de org>
Index: libnautilus-private/nautilus-file-operations.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-file-operations.c,v
retrieving revision 1.196
diff -u -p -r1.196 nautilus-file-operations.c
--- libnautilus-private/nautilus-file-operations.c	25 Aug 2005 08:57:47 -0000	1.196
+++ libnautilus-private/nautilus-file-operations.c	14 Sep 2005 23:02:25 -0000
@@ -2712,6 +2712,8 @@ nautilus_file_operations_empty_trash (Gt
 void
 nautilus_self_check_file_operations (void)
 {
+	setlocale (LC_MESSAGES, "C");
+
 	/* test the next duplicate name generator */
 	EEL_CHECK_STRING_RESULT (get_duplicate_name (" (copy)", 1), " (another copy)");
 	EEL_CHECK_STRING_RESULT (get_duplicate_name ("foo", 1), "foo (copy)");
@@ -2754,6 +2756,8 @@ nautilus_self_check_file_operations (voi
 	EEL_CHECK_STRING_RESULT (get_duplicate_name ("foo (122nd copy).txt", 1), "foo (123rd copy).txt");
 	EEL_CHECK_STRING_RESULT (get_duplicate_name ("foo (123rd copy)", 1), "foo (124th copy)");
 	EEL_CHECK_STRING_RESULT (get_duplicate_name ("foo (123rd copy).txt", 1), "foo (124th copy).txt");
+
+	setlocale (LC_MESSAGES, "");
 }
 
 #endif

Attachment: signature.asc
Description: This is a digitally signed message part



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