summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregorio Guidi <greg_g@gentoo.org>2005-11-16 10:41:26 +0000
committerGregorio Guidi <greg_g@gentoo.org>2005-11-16 10:41:26 +0000
commit2ec59d8e585434471f62992301f005694e96a8af (patch)
tree661cffc01abadc5b547d65feb591d2aec7de4ff5 /kde-base/kdeutils/files
parentNew version. (diff)
downloadgentoo-2-2ec59d8e585434471f62992301f005694e96a8af.tar.gz
gentoo-2-2ec59d8e585434471f62992301f005694e96a8af.tar.bz2
gentoo-2-2ec59d8e585434471f62992301f005694e96a8af.zip
New version.
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'kde-base/kdeutils/files')
-rw-r--r--kde-base/kdeutils/files/digest-kdeutils-3.5.0_rc11
-rw-r--r--kde-base/kdeutils/files/kdeutils-3.5_rc1-unicode.patch53
2 files changed, 54 insertions, 0 deletions
diff --git a/kde-base/kdeutils/files/digest-kdeutils-3.5.0_rc1 b/kde-base/kdeutils/files/digest-kdeutils-3.5.0_rc1
new file mode 100644
index 000000000000..0a6bb31a4539
--- /dev/null
+++ b/kde-base/kdeutils/files/digest-kdeutils-3.5.0_rc1
@@ -0,0 +1 @@
+MD5 801c776b207fea6983854925b9663f9f kdeutils-3.5.0_rc1.tar.bz2 2957042
diff --git a/kde-base/kdeutils/files/kdeutils-3.5_rc1-unicode.patch b/kde-base/kdeutils/files/kdeutils-3.5_rc1-unicode.patch
new file mode 100644
index 000000000000..c8598310eeeb
--- /dev/null
+++ b/kde-base/kdeutils/files/kdeutils-3.5_rc1-unicode.patch
@@ -0,0 +1,53 @@
+diff -Nur kdeutils-3.5.0.orig/superkaramba/src/meter_python.cpp kdeutils-3.5.0/superkaramba/src/meter_python.cpp
+--- kdeutils-3.5.0.orig/superkaramba/src/meter_python.cpp 2005-11-08 23:29:27.000000000 +0100
++++ kdeutils-3.5.0/superkaramba/src/meter_python.cpp 2005-11-16 10:20:33.000000000 +0100
+@@ -119,22 +119,41 @@
+ PyObject *pyString;
+
+ const unsigned short* tmp = string.ucs2();
+- Py_UNICODE *buf = new Py_UNICODE[string.length()];
+- for(unsigned int i = 0; i < string.length(); i++)
++ bool dofree = false;
++
++ if(tmp)
+ {
+- buf[i] = tmp[i];
++ #if Py_UNICODE_SIZE == 4
++
++ Py_UNICODE* buf = new Py_UNICODE[string.length()];
++
++ for(unsigned int i = 0; i < string.length(); i++)
++ {
++ buf[i] = tmp[i];
++ }
++ dofree = true;
++
++ #else
++
++ Py_UNICODE* buf = (Py_UNICODE*) tmp;
++
++ #endif
++
++ pyString = PyUnicode_FromUnicode(buf, string.length());
++
++ if(dofree)
++ {
++ delete [] buf;
++ }
+ }
+-
+- if(tmp)
+- pyString = PyUnicode_FromWideChar(buf, string.length());
++
+ else
+ pyString = PyString_FromString("");
+-
+- delete [] buf;
+
+ return pyString;
+ }
+
++
+ long getMeter(long widget, char* name)
+ {
+ karamba* theme = (karamba*)widget;