Browse Source

Replace 8-bit characters in CDF summary data with spaces

Christoph Biedl 10 years ago
parent
commit
00706da4f2
2 changed files with 25 additions and 0 deletions
  1. 24 0
      debian/patches/extra.fix-8bit-in-cdf.patch
  2. 1 0
      debian/patches/series

+ 24 - 0
debian/patches/extra.fix-8bit-in-cdf.patch

@@ -0,0 +1,24 @@
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Date: 2014-03-05
+Description:
+ Replace 8-bit characters in CDF summary data with spaces.
+ .
+ At the moment, uninitialized values are printed, resulting in
+ differing results upon each call.
+ .
+ Present spaces instead until upstream provides a better solution.
+
+--- a/src/readcdf.c
++++ b/src/readcdf.c
+@@ -141,8 +141,9 @@
+                                     j++, s += k) {
+                                         if (*s == '\0')
+                                                 break;
+-                                        if (isprint((unsigned char)*s))
+-                                                vbuf[j] = *s;
++                                        vbuf[j] = 
++                                                isprint((unsigned char)*s) ?
++                                                *s : ' ';
+                                 }
+                                 if (j == sizeof(vbuf))
+                                         --j;

+ 1 - 0
debian/patches/series

@@ -12,3 +12,4 @@
 cherry-pick.eced9db.python-over-detection.patch
 cherry-pick.c0c0032.fix-memory-leak.patch
 cherry-pick.f9d8564.fix-python-8bit-filenames.patch
+extra.fix-8bit-in-cdf.patch