[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#168160: dpkg-source and UTF-8



"Petr Baláš,,," <petr@balas.cz> writes:

> Malformed UTF-8 character (unexpected end of string) at /usr/bin/dpkg-source 
> line 604, <GZIP> line 1429.

Unpacking maxima 5.6b-50 with LANG=fi_FI.UTF-8@euro gave me 201
of those warnings.  The following patch got rid of them:

--- /usr/bin/dpkg-source	2002-09-21 18:45:30.000000000 +0300
+++ /home/kalle/any-arch/bin/dpkg-source	2002-11-30 18:07:14.000000000 +0200
@@ -566,6 +566,7 @@
     if (length($difffile)) {
             
         &forkgzipread("$dscdir/$difffile");
+        binmode GZIP;
         $/="\n";
 	$_ = <GZIP>;
         while ($_ || !eof(GZIP)) {
However, I don't know if it causes other problems.
Are there any rules about character encodings in patches,
particularly in the names of the patched files?

Reply to: