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:
2019-05-09 14:25:35 +02:00
parent 29570469f4
commit e34a18e335
2 changed files with 175 additions and 0 deletions

View 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