wireshark-dev October 2010 archive
Main Archive Page > Month Archives  > wireshark-dev archives
wireshark-dev: [Wireshark-dev] non-ASCII stuff in manuf

[Wireshark-dev] non-ASCII stuff in manuf

From: Jeff Morriss <jeff.morriss.ws_at_nospam>
Date: Mon Oct 25 2010 - 20:19:01 GMT
To: Developer support list for Wireshark <wireshark-dev@wireshark.org>

I noticed this weekend that there's a bunch of non-ASCII characters in
the manuf file. Of course this doesn't present well in the GUI (or in
tshark output).

I found 2 easy options to fix it:

1) use encode():

sub shorten
   my $origmanuf = shift;
   $origmanuf = encode("ascii", $origmanuf);

This replaces non-ASCII chars with question marks. It's better than
what we have now, but not great.

2) use Text:Unidecode():

sub shorten
   my $origmanuf = shift;
   $origmanuf = unidecode($origmanuf);

This does a more intelligent conversion.

Gerald, does your system (that automatically updates manuf) have
Text:Unidecode? If not, can it be installed?
Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev