then compile the test.yar into test.yc without no error or warning.
Finally, I tested the test.yc and test.yar rule by scanning some target files in cmd line. The results always:
1) when I use test.yc: yara test.yc target_file, I got error msg [test.yc(1): error: syntax error test.yc(1): error: non-ascii character]
2) when I use test.yar, it succeed
[Problem] test.yc(1): error: syntax error test.yc(1): error: non-ascii character
[Description] I write any yar rule file test.yar. e.g. rule MetadataExample { meta: my_identifier_1 = "Some string data"
then compile the test.yar into test.yc without no error or warning. Finally, I tested the test.yc and test.yar rule by scanning some target files in cmd line. The results always: 1) when I use test.yc: yara test.yc target_file, I got error msg [test.yc(1): error: syntax error test.yc(1): error: non-ascii character] 2) when I use test.yar, it succeed
why?
[yara version 4.2.3, ubuntu 22.04]