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

Bug#241333: policy mentions that changelogs should be utf-8; this is a bug



On Wed, 31 Mar 2004 16:02:52 -0600 (CST), Adam Heath <doogie@debian.org> said: 

> This is not supported by any tool in debian.

	Well, by itself, this is not a problem: Policy is not
 packaging system documentation.

> Control files are ascii, 7-bit, period.  And, when generating the
> .changes for an upload, the changelog is included, this means the
> changelog *must* be 7-bit ascii.  Period.

	Could you explain to me the nature and magnitude of the
 problems encountered?  I have a number of packages installed which
 have non ascii chars in the changelog, and there appears to have been
 no issues.

>> dpkg hat off>

	Also, why are you so sure parsecdata can't handle non-ascii
 chars? You do seem to be putting the file handle in binmode.
 Starting from Perl 5.6.0, Perl has had the capacity to handle Unicode
 natively. Starting from Perl 5.8.0, the use of "use utf8" is no
 longer necessary. 


	Indeed, the fix seems blindingly simple:
 in outputclose, add this:

   binmode(STDOUT, ":utf8");


	Perhaps I should try putting on a dpkg hat, since a simple fix
 like this is eschewed in favour of changing established policy and
 causing a lot of packages to be changed.

	manoj
 with no hat on.
-- 
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



Reply to: