-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
Affects Version/s: 8.0.0alpha2
-
Component/s: Agent (G)
Steps to reproduce:
- Configure Agent with old library PCRE2-10.30
./configure --prefix=$(pwd)/dist --enable-agent --with-libpcre2=/home/zabbix/workspace/downgraded_library/pcre2-10.30 -q
- Create item with key: vfs.file.regexp["/home/zabbix/workspace/japan_jis_coding_2","error"]
- Create file with encoding Shift_JIS (Japanese) and write some text like this:
1. お母さんはフレームを洗っていました
2. 良い天気
3. error 4 こんにちは世界
4. 良い天気
5. お母さんはフレームを洗っていました
6. error 3 hello
7. お母さんはフレームを洗っていました - Go to Monitoring->Latest data and check
Result:
Line 6 is returned: 6. error 3 hello

Expected:
Line 3 should be returned, similar as it is returned for Agent2:

NOTE: in case, if key contains encoding vfs.file.regexp["/home/zabbix/workspace/japan_jis_coding_2","error",shift_jis], correct line is returned.