Important typo fix in guess_message_value()

Pavel Roskin proski at gnu.org
Sun Aug 12 08:36:40 UTC 2001


Hello!

Function guess_message_value() used the "LC_MESSAGE" environment variable
(along with some others) to determine the locale settings.

What was meant is obviously "LC_MESSAGES" - the variable that affects the
messages translated by gettext.

I'm replacing "LC_MESSAGE" with "LC_MESSAGES" so that the hints and the
translations can be set by the same variable that doesn't affect other
locale settings (e.g. LC_COLLATE).

-- 
Regards,
Pavel Roskin

--------------------------------
--- ChangeLog
+++ ChangeLog
@@ -2,2 +2,5 @@

+	* cmd.c (guess_message_value): Typo - replace "LC_MESSAGE" with
+	"LC_MESSAGES".
+
 	* dir.c (string_sortcomp) [HAVE_STRCOLL]: Always use strcmp()
--- cmd.c
+++ cmd.c
@@ -1206,8 +1206,8 @@ void mkdir_panel_cmd (void)
     mkdir_cmd (cpanel);
 }

-/* partly taken from dcgettect.c, returns "" for C locale */
-/* value should be gfreed by calling function */
+/* partly taken from dcigettext.c, returns "" for default locale */
+/* value should be freed by calling function g_free() */
 char *guess_message_value (unsigned want_info)
 {
     const char *var[] = {
@@ -1217,7 +1217,7 @@ char *guess_message_value (unsigned want
 	/* Setting of LC_ALL overwrites all other.  */
 	"LC_ALL",
 	/* Next comes the name of the desired category.  */
-	"LC_MESSAGE",
+	"LC_MESSAGES",
         /* Last possibility is the LANG environment variable.  */
 	"LANG",
 	/* NULL exit loops */
--------------------------------





More information about the mc-devel mailing list