Bug#174982: [PROPOSAL]: Debian changelogs should be UTF-8 encoded
> > > | Right now, people are putting whatever random characters they feel like
> > > | in Debian changelogs;
> > >
> > > I think we shouldn't use must just yet, since this will cause a lot of
> > > packages (you know how many?) to be instantly buggy. If you change
> > > the ?must? to ?should?, I'll second the proposal.
> >
> > Erm.. no, only those packages which comply with the latest
> > version of policy, and it is pretty easy to add a rule to
> > change the encoding to utf-8 on the debian/rules install target.
> >
> > Adding an example would be handy:
> >
> > To install changelog from upstream that is coded in ISO-8859-15,
> > the following rules in your debian/rules may help:
> >
> > clean:
> > .
> > rm -f debian/ChangeLog-upstream
>
> He's not talking about upstream changelogs.
Hmm.. I slightly misunderstood, but that doesn't much change the
problem.
The example would be:
install:
.
.
iconv -f iso-8859-15 -t utf-8 < debian/changelog > debian/tmp/usr/share/doc/$(PACKAGE)/changelog.Debian
gzip -9 debian/tmp/usr/share/doc/$(PACKAGE)/changelog.Debian
I guess dh_installchangelogs can be patched to allow specifying arbitrary
changelog, but probably the following would work (in most cases):
install:
.
.
iconv -f iso-8859-15 -t utf-8 < debian/changelog > debian/$(PACKAGE).changelog
dh_installchangelogs
Reply to: