Просмотр исходного кода

handle 8th bit properly in packagelist-displays

Wichert Akkerman лет назад: 26
Родитель
Сommit
7d13c1e48e
3 измененных файлов с 12 добавлено и 1 удалено
  1. 5 0
      ChangeLog
  2. 6 0
      debian/changelog
  3. 1 1
      dselect/pkgtop.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+Sat Dec 25 04:04:48 CET 1999 Wichert Akkerman <wakkerma@debian.org>
+
+  * dselect/pkgtop.cc: use waddnstr instead of waddch so we don't strip
+    the 8th bit of characters
+
 Sat Dec 25 02:50:31 CET 1999 Wichert Akkerman <wakkerma@debian.org>
 Sat Dec 25 02:50:31 CET 1999 Wichert Akkerman <wakkerma@debian.org>
 
 
   * Oops, forgot to add scripts/dpkg-safefilelist.{1,pl}
   * Oops, forgot to add scripts/dpkg-safefilelist.{1,pl}

+ 6 - 0
debian/changelog

@@ -1,3 +1,9 @@
+dpkg (1.6.6) unstable; urgency=low
+
+  * Don't strip 8th bit in dselect packagelists
+
+ -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
+
 dpkg (1.6.5) unstable; urgency=low
 dpkg (1.6.5) unstable; urgency=low
 
 
   * Don't use \z in dpkg-scansources, Closes: Bug# 53182
   * Don't use \z in dpkg-scansources, Closes: Bug# 53182

+ 1 - 1
dselect/pkgtop.cc

@@ -242,7 +242,7 @@ void packagelist::redraw1itemsel(int index, int selected) {
 
 
     wattrset(listpad, selected ? selstatesel_attr : selstate_attr);
     wattrset(listpad, selected ? selstatesel_attr : selstate_attr);
     p= buf;
     p= buf;
-    while (i>0 && *p) { waddch(listpad, *p); p++; i--; }
+    while (i>0 && *p) { waddnstr(listpad, p,1); p++; i--; }
     wattrset(listpad, selected ? listsel_attr : list_attr);
     wattrset(listpad, selected ? listsel_attr : list_attr);
 
 
     waddch(listpad,' ');
     waddch(listpad,' ');