[Aptitude-devel] Bug#1067704: #1067704 -- aptitude source code need to be updated for UTF-8

Osamu Aoki osamu at debian.org
Sat Feb 14 16:28:22 GMT 2026


Hi,

I find the same problem quite annoying, too.

Very simple patch as below solved this problem for the most annoying part of
this bug.

But as I see the source, there are few more places to be fixed and also change
encoding of text data.

help-zh_TW.txt is not in UTF-8 (help-zh_CN.txt is in UTF-8)
help-de.txt is latin1

I don't see any one working on this on salsa.
https://salsa.debian.org/apt-team/aptitude/-/merge_requests


Let me make a fork and send MR via salsa when I find a time.

---

Description: README is UTF-8
 aptitude (0.8.13-7.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * UTF-8
Author: Osamu Aoki <osamu at debian.org>

--- aptitude-0.8.13.orig/src/ui.cc
+++ aptitude-0.8.13/src/ui.cc
@@ -1181,13 +1181,13 @@ static void do_help_readme()
   // Look up the translation of README.
   // TRANSLATORS: You can translate README and set the filename here.
   std::string readme_file = ssprintf(HELPDIR "/%s", P_("Localized
file|README"));
-  const char *encoding    = P_("Encoding of README|ISO_8859-1");
+  const char *encoding    = P_("Encoding of README|UTF-8");
 
   // Deal with missing localized docs.
   if(access(readme_file.c_str(), R_OK)!=0)
     {
       readme_file = HELPDIR "/README";
-      encoding    = "ISO_8859-1";
+      encoding    = "UTF-8";
     }
 
   setup_fileview(readme_file,



More information about the Aptitude-devel mailing list