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