File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ sub match {
46
46
@matches = map { Encode::encode(' UTF-8' , $_ ) } @matches ;
47
47
48
48
# return the array @matches, so that its elements would be mapped to
49
- # SEC match variables $1, $2, ...
49
+ # SEC match variables $1, $2, etc. (since Perl wide characters are not
50
+ # returned from this function, it will avoid Perl warnings and errors
51
+ # when Perl wide characters are written to outputs like files and sockets)
50
52
51
53
return @matches ;
52
54
}
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ action=eval %o (require "/etc/sec/perl/SecUtf8.pm"); \
23
23
# Note that before returning values of match variables, the SecUtf8::match()
24
24
# function converts Perl wide characters back to UTF-8 multibyte characters
25
25
# in returned values, and thus the $1 and $2 match variables will hold values
26
- # in UTF-8 encoding (that will avoid warnings and errors from Perl when Perl
27
- # wide characters are written to various outputs like files and sockets).
26
+ # in UTF-8 encoding (that will avoid Perl warnings and errors when Perl wide
27
+ # characters are written to outputs like files and sockets).
28
28
29
29
type=Single
30
30
ptype=PerlFunc
You can’t perform that action at this time.
0 commit comments