Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37751961
en ru br
Репозитории ALT
5.1: 1.6f-alt11
4.1: 1.6f-alt1
4.0: 1.5m2-alt4
+backports:1.6f-alt5.M40.1
3.0: 1.5m2-alt3
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: man

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: man-1.5m2-alt-manpath.patch
Скачать


--- man-1.5m2/src/manpath.c.orig	2003-09-05 13:48:13 +0400
+++ man-1.5m2/src/manpath.c	2004-05-26 17:14:58 +0400
@@ -26,6 +26,7 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <locale.h>
 
 /* not always in <string.h> */
 extern char *index(const char *, int);
@@ -278,16 +279,7 @@
 	if (alt_system) {
 		add_to_list(dir, alt_system_name, perrs);
 	} else {
-		/* We cannot use "lang = setlocale(LC_MESSAGES, NULL)" or so:
-		   the return value of setlocale is an opaque string. */
-		/* POSIX prescribes the order: LC_ALL, LC_MESSAGES, LANG */
-		if((lang = getenv("LC_ALL")) != NULL)
-			split2(dir, lang, add_to_mandirlist_x, perrs);
-		if((lang = getenv("LC_MESSAGES")) != NULL)
-			split2(dir, lang, add_to_mandirlist_x, perrs);
-		if((lang = getenv("LANG")) != NULL)
-			split2(dir, lang, add_to_mandirlist_x, perrs);
-		if((lang = getenv("LANGUAGE")) != NULL)
+		if((lang = setlocale(LC_MESSAGES, NULL)) != NULL)
 			split2(dir, lang, add_to_mandirlist_x, perrs);
 		add_to_mandirlist_x(dir, 0, perrs);
 	}
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin