Author: arekm                        Date: Tue Feb 13 20:05:57 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- more

---- Files affected:
SOURCES:
   rpm-locale.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/rpm-locale.patch
diff -u SOURCES/rpm-locale.patch:1.1 SOURCES/rpm-locale.patch:1.2
--- SOURCES/rpm-locale.patch:1.1        Tue Feb 13 20:59:51 2007
+++ SOURCES/rpm-locale.patch    Tue Feb 13 21:05:52 2007
@@ -96,3 +96,49 @@
 +    *dest = '\0';
 +    return result;
 +}
+--- rpm-4.4.2.org/lib/formats.c        2005-01-26 05:46:54.000000000 +0100
++++ rpm-4.4.2/lib/formats.c    2007-02-13 20:50:01.082623000 +0100
+@@ -301,6 +301,7 @@
+     char * t, * te;
+     unsigned long anint = 0;
+     int xx;
++    int freeit = 0;
+ 
+ /[EMAIL PROTECTED]@*/
+     switch (type) {
+@@ -308,6 +309,10 @@
+     case RPM_STRING_TYPE:
+       s = data;
+       xtag = "string";
++      /* XXX Force utf8 strings. */
++      s = xstrdup(s);
++      s = xstrtolocale(s);
++      freeit = 1;
+       break;
+     case RPM_BIN_TYPE:
+     { int cpl = b64encode_chars_per_line;
+@@ -321,6 +326,7 @@
+       b64encode_chars_per_line = cpl;
+ /[EMAIL PROTECTED]@*/
+       xtag = "base64";
++      freeit = 1;
+     } break;
+     case RPM_CHAR_TYPE:
+     case RPM_INT8_TYPE:
+@@ -367,7 +373,7 @@
+ 
+     /* XXX s was malloc'd */
+ /[EMAIL PROTECTED]@*/
+-    if (!strcmp(xtag, "base64"))
++    if (freeit)
+       s = _free(s);
+ /[EMAIL PROTECTED]@*/
+ 
+@@ -1077,6 +1083,7 @@
+ 
+     if (rc && (*data) != NULL) {
+       *data = xstrdup(*data);
++      *data = xstrtolocale(*data);
+       *freeData = 1;
+       return 0;
+     }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rpm-locale.patch?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to