File: fix-wide-char-warning.patch

package info (click to toggle)
arp-scan 1.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,624 kB
  • sloc: ansic: 5,289; sh: 959; perl: 856; makefile: 17
file content (37 lines) | stat: -rw-r--r-- 1,323 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From: Hilko Bengen <bengen@debian.org>
Date: Tue, 21 Aug 2018 21:56:50 +0200
Subject: Set UTF-8 mode encoding while opening output files in order to avoid
 confusing messages during get-oui and get-iab executions.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884730
---
 get-iab | 2 +-
 get-oui | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/get-iab b/get-iab
index b1d9692..a24fff2 100755
--- a/get-iab
+++ b/get-iab
@@ -104,7 +104,7 @@ print "Fetched $content_length bytes\n" if $verbose;
 # Open the output file for writing.
 #
 print "Opening output file $filename\n" if $verbose;
-open OUTPUT, ">$filename" || die "Could not open $filename for writing";
+open OUTPUT, '>:encoding(UTF-8)', $filename || die "Could not open $filename for writing";
 #
 # Write the header comments to the output file.
 #
diff --git a/get-oui b/get-oui
index 31fd569..9f2b227 100755
--- a/get-oui
+++ b/get-oui
@@ -93,7 +93,7 @@ print "Fetched $content_length bytes\n" if $verbose;
 # Open the output file for writing.
 #
 print "Opening output file $filename\n" if $verbose;
-open OUTPUT, ">$filename" || die "Could not open $filename for writing";
+open OUTPUT, '>:encoding(UTF-8)', $filename || die "Could not open $filename for writing";
 #
 # Write the header comments to the output file.
 #