#762 wide character error on deploy with local oui.txt
This commit is contained in:
1
Changes
1
Changes
@@ -3,6 +3,7 @@
|
|||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
* #740 more robust log rotation
|
* #740 more robust log rotation
|
||||||
|
* #762 wide character error on deploy with local oui.txt
|
||||||
|
|
||||||
2.047002 - 2020-12-30
|
2.047002 - 2020-12-30
|
||||||
|
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ sub deploy_oui {
|
|||||||
my %data = ();
|
my %data = ();
|
||||||
|
|
||||||
if (@ARGV) {
|
if (@ARGV) {
|
||||||
@lines = File::Slurper::read_lines($ARGV[0]);
|
@lines = File::Slurper::read_lines($ARGV[0], 'iso-8859-1');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
my $url = 'https://raw.githubusercontent.com/netdisco/upstream-sources/master/ieee/oui.txt';
|
my $url = 'https://raw.githubusercontent.com/netdisco/upstream-sources/master/ieee/oui.txt';
|
||||||
@@ -275,7 +275,7 @@ sub deploy_oui {
|
|||||||
sub shorten {
|
sub shorten {
|
||||||
my $manuf = shift;
|
my $manuf = shift;
|
||||||
|
|
||||||
$manuf = decode("utf8", $manuf, Encode::FB_CROAK) unless @ARGV;
|
$manuf = decode("utf8", $manuf, Encode::FB_CROAK);
|
||||||
$manuf = " " . $manuf . " ";
|
$manuf = " " . $manuf . " ";
|
||||||
|
|
||||||
# Remove any punctuation
|
# Remove any punctuation
|
||||||
|
|||||||
Reference in New Issue
Block a user