aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-06-27 11:45:47 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-06-27 11:45:47 +0000
commitbcd0073be4617db45bb82400f74a49dba6deaab8 (patch)
treec063a08bfd594b29a728d803ce4c91aa8bc681e1
parent913b83a1d6c117591f575b0c9cc745e7c59f5240 (diff)
downloadrpmdrake-bcd0073be4617db45bb82400f74a49dba6deaab8.tar
rpmdrake-bcd0073be4617db45bb82400f74a49dba6deaab8.tar.gz
rpmdrake-bcd0073be4617db45bb82400f74a49dba6deaab8.tar.bz2
rpmdrake-bcd0073be4617db45bb82400f74a49dba6deaab8.tar.xz
rpmdrake-bcd0073be4617db45bb82400f74a49dba6deaab8.zip
fix sorting of translated stuff in the treeview (will need
drakxtools > 9.2-0.7mdk to work properly though)
-rwxr-xr-xrpmdrake7
-rw-r--r--rpmdrake.spec2
2 files changed, 9 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index ce33af95..52b7f2af 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -41,6 +41,13 @@ use common;
use rpmdrake;
use gurpm;
+#- dirty stuff needed because text printed by gtk2 will always be encoded in UTF-8
+use POSIX;
+use locale;
+my $collation_locale = setlocale(LC_COLLATE);
+$collation_locale =~ /UTF-8/ or setlocale(LC_COLLATE, "$collation_locale.UTF-8");
+
+
$MODE = 'install';
$0 =~ m|/rpmdrake-remove$| and $MODE = 'remove';
$0 =~ m|/MandrakeUpdate$| and $MODE = 'update';
diff --git a/rpmdrake.spec b/rpmdrake.spec
index 2739196c..fe198916 100644
--- a/rpmdrake.spec
+++ b/rpmdrake.spec
@@ -103,6 +103,8 @@ rm -rf $RPM_BUILD_ROOT
- new ugtk2.pm API
- use urpmi reporting reasons for impossibility to select some
packages, and for needing to remove some
+- fix sorting of translated stuff in the treeview (will need
+ drakxtools > 9.2-0.7mdk to work properly though)
* Fri Jun 6 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1-23mdk
- rpmdrake: at install time, when some local files are impossible