Wireshark mailing list archives
non-ASCII stuff in manuf
From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Mon, 25 Oct 2010 16:19:01 -0400
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
mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- non-ASCII stuff in manuf Jeff Morriss (Oct 25)
- Re: non-ASCII stuff in manuf Guy Harris (Oct 25)
- Re: non-ASCII stuff in manuf Jeff Morriss (Oct 25)
- Re: non-ASCII stuff in manuf Guy Harris (Oct 25)
- Re: non-ASCII stuff in manuf Guy Harris (Oct 25)
- Re: non-ASCII stuff in manuf Thomas Boehne (Oct 26)
- Re: non-ASCII stuff in manuf Jeff Morriss (Oct 25)
- Re: non-ASCII stuff in manuf Guy Harris (Oct 25)
