OSSP CVS Repository

ossp - Check-in [5661]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5661
Date: 2006-Nov-20 19:17:33 (local)
2006-Nov-20 18:17:33 (UTC)
User:rse
Branch:
Comment: Fix the Data::UUID::to_b64string() function of the Perl backward compatibility API: an empty string was not supplied as the EOL marker to MIME::Base64::encode_base64() and hence the returned string ended with a newline character (which in turn breaks many applications using Data::UUID).

Submitted by: Piotr Roszatycki <dexter@debian.org>

Tickets:
Inspections:
Files:
ossp-pkg/uuid/ChangeLog      1.133 -> 1.134     7 inserted, 0 deleted
ossp-pkg/uuid/perl/uuid_compat.pm      1.10 -> 1.11     1 inserted, 1 deleted

ossp-pkg/uuid/ChangeLog 1.133 -> 1.134

--- ChangeLog    2006/10/06 08:32:40     1.133
+++ ChangeLog    2006/11/20 18:17:33     1.134
@@ -13,6 +13,13 @@
 
   Changes between 1.5.1 and 1.6.0 (31-Jul-2006 to 05-Oct-2006)
 
+   o Fix the Data::UUID::to_b64string() function of the Perl backward
+     compatibility API: an empty string was not supplied as the EOL
+     marker to MIME::Base64::encode_base64() and hence the returned
+     string ended with a newline character (which in turn breaks many
+     applications using Data::UUID).
+     [Piotr Roszatycki <dexter@debian.org>]
+
    o Change type of "data_ptr" argument in uuid_export() API signature
      from "void **" to "void *" as there is unfortunately no
      "generic pointer to pointer type" in ISO C (see also


ossp-pkg/uuid/perl/uuid_compat.pm 1.10 -> 1.11

--- uuid_compat.pm       2006/07/31 12:45:09     1.10
+++ uuid_compat.pm       2006/11/20 18:17:34     1.11
@@ -84,7 +84,7 @@
 
 sub to_b64string {
     my ($self, $bin) = @_;
-    return MIME::Base64::encode_base64($bin);
+    return MIME::Base64::encode_base64($bin, '');
 }
 
 sub from_string {

CVSTrac 2.0.1