[Bug 1108519] [NEW] ubuntu patch 14_html2text_preferred encodes README in UTF-8 without updating metadata

Daniel Hartwig mandyke at gmail.com
Tue Jan 29 04:28:19 UTC 2013


Public bug reported:

Package: aptitude
Version: 0.6.8-1ubuntu1

When viewed online [Help > User's Manual], the English README file
contains numerous character encoding errors.

The file doc/html-to-text converts a html document to text in a
particular encoding.  The ubuntu patch 14_html2text_preferred ignores
the specified encoding and outputs all text documents in UTF-8.  When
viewing these files online the encoding is determined by various
/translated/ strings in the programs source that are not updated by the
patch.

UTF-8 is not equivalent with ISO_8859-1.

The binary package aptitude-common contains a file README, generated at
build time using html-to-text with a /requested encoding/ of ISO_8859-1.
At run time this same encoding is specified at src/ui.cc:1126.  The
ubuntu patch causes this file to be encoded in UTF-8 without updating
the metadata, causing the encoding problems for C and other locales that
use this particular file.

14_html2text_preferred must either: respect the requested encoding; or
update the program so that the online viewer does not use the wrong
encoding.

** Affects: aptitude (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptitude in Ubuntu.
https://bugs.launchpad.net/bugs/1108519

Title:
  ubuntu patch 14_html2text_preferred encodes README in UTF-8 without
  updating metadata

Status in “aptitude” package in Ubuntu:
  New

Bug description:
  Package: aptitude
  Version: 0.6.8-1ubuntu1

  When viewed online [Help > User's Manual], the English README file
  contains numerous character encoding errors.

  The file doc/html-to-text converts a html document to text in a
  particular encoding.  The ubuntu patch 14_html2text_preferred ignores
  the specified encoding and outputs all text documents in UTF-8.  When
  viewing these files online the encoding is determined by various
  /translated/ strings in the programs source that are not updated by
  the patch.

  UTF-8 is not equivalent with ISO_8859-1.

  The binary package aptitude-common contains a file README, generated
  at build time using html-to-text with a /requested encoding/ of
  ISO_8859-1.  At run time this same encoding is specified at
  src/ui.cc:1126.  The ubuntu patch causes this file to be encoded in
  UTF-8 without updating the metadata, causing the encoding problems for
  C and other locales that use this particular file.

  14_html2text_preferred must either: respect the requested encoding; or
  update the program so that the online viewer does not use the wrong
  encoding.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/1108519/+subscriptions




More information about the foundations-bugs mailing list