Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37040414
en ru br
Репозитории ALT
S:0.5.15lorg2-alt86
5.1: 0.5.15lorg2-alt33.M50P.1
4.1: 0.5.15lorg2-alt20.M41.1
4.0: 0.5.15lorg2-alt18.M40.1
+updates:0.5.15lorg2-alt18
3.0: 0.5.15cnc6-alt16
www.altlinux.org/Changes

Группа :: Система/Настройка/Пакеты
Пакет: apt

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

Патч: apt-0.5.15cnc6-apt-utils-locale.patch
Скачать


diff -upk.orig apt-0.5.15cnc6.orig/tools/genpkglist.cc apt-0.5.15cnc6/tools/genpkglist.cc
--- apt-0.5.15cnc6.orig/tools/genpkglist.cc	2003-12-23 18:30:14 +0000
+++ apt-0.5.15cnc6/tools/genpkglist.cc	2005-11-25 21:57:03 +0000
@@ -13,6 +13,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <assert.h>
+#include <locale.h>
 
 #include <map>
 #include <iostream>
@@ -464,7 +465,7 @@ int main(int argc, char ** argv) 
    const char *pkgListSuffix = NULL;
    bool pkgListAppend = false;
    
-   putenv("LC_ALL="); // Is this necessary yet (after i18n was supported)?
+   setlocale(LC_ALL, "C");
    for (i = 1; i < argc; i++) {
       if (strcmp(argv[i], "--index") == 0) {
 	 i++;
diff -upk.orig apt-0.5.15cnc6.orig/tools/gensrclist.cc apt-0.5.15cnc6/tools/gensrclist.cc
--- apt-0.5.15cnc6.orig/tools/gensrclist.cc	2003-12-23 18:30:14 +0000
+++ apt-0.5.15cnc6/tools/gensrclist.cc	2005-11-25 21:56:58 +0000
@@ -13,6 +13,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <assert.h>
+#include <locale.h>
 
 #include <map>
 #include <list>
@@ -154,7 +155,7 @@ int main(int argc, char ** argv) 
    const char *srcListSuffix = NULL;
    bool srcListAppend = false;
 
-   putenv("LC_ALL="); // Is this necessary yet (after i18n was supported)?
+   setlocale(LC_ALL, "C");
    for (i = 1; i < argc; i++) {
       if (strcmp(argv[i], "--mapi") == 0) {
 	 mapi = true;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin