tags 477822 patch
thanks

In my opinion it's enougth to replace all the characters with the codes
lower than 0x20 on any charachter that could be displaed (for example
'?') too fix this problem.

Please test the attached patch which do this and please report if there
any problems with another characters.

--- mytop-1.6.orig/mytop	2008-04-27 16:23:56.000000000 +0400
+++ mytop-1.6/mytop	2008-04-27 16:22:32.000000000 +0400
@@ -1009,6 +1009,9 @@
 
             ## collpase whitespace
             $thread->{Info} =~ s/\s+/ /g;
+
+            # control symbols
+            $thread->{Info} =~ s/(.)/ord($1)<0x20?'?':$1/eg;
         }
 
         ## stow it in the cache

Attachment: signature.asc
Description: Digital signature

Reply via email to