Add script 'apply-sa-compile-utf8-patch.sh' and patchfile to apply a patch to '/usr/bin/sa-compile' to get rid of warning 'Wide character in print at /usr/bin/sa-compile line 433 , <> line 2405'.
This commit is contained in:
11
files/sa-compile.utf8.patch
Normal file
11
files/sa-compile.utf8.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- /usr/bin/sa-compile 2018-10-01 08:44:58.000000000 +0200
|
||||
+++ /root/sa-compile-new 2019-05-09 13:03:18.248787745 +0200
|
||||
@@ -391,6 +391,8 @@
|
||||
open(my $re, ">scanner${numscans}.re")
|
||||
or die "cannot create scanner${numscans}.re: $!";
|
||||
|
||||
+ binmode($re, "encoding(UTF-8)");
|
||||
+
|
||||
print $re <<EOT or die "error writing: $!";
|
||||
#define NULL ((char*) 0)
|
||||
#define YYCTYPE unsigned char
|
Reference in New Issue
Block a user