Hi,

On Wed, 18 Aug 2010, Colin Watson wrote:
> A fix for this is to insert:
> 
>   binmode($fh, ":encoding(UTF-8)");
> 
> ... just before the call to $self->parse in
> Dpkg::Interface::Storable::load(); this causes Perl to assume character
> semantics on the data read from that file, which causes sprintf %.65s to
> yield 65 characters rather than 65 bytes.  However, this will require
> every file read through that interface to be valid UTF-8, and I don't
> know whether that is appropriate, so I leave this to your judgement.

It's definitely not the right place for such a fix IMO. It should be in
Dpkg::Control ideally... but it's an high impact change that needs careful
preparation.

For now I have pushed a non-invasive fix for squeeze that corrects
dpkg-genchanges only.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer ◈ [Flattr=20693]

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
                      ▶ http://RaphaelHertzog.fr (Français)




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to