summaryrefslogtreecommitdiff
path: root/sample/listcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sample/listcap.c')
-rw-r--r--sample/listcap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sample/listcap.c b/sample/listcap.c
index 9a4fd9a..e283890 100644
--- a/sample/listcap.c
+++ b/sample/listcap.c
@@ -93,6 +93,9 @@ extern int main(int argc, char* argv[])
static UChar* str3 = (UChar* )"0123";
static UChar* pattern3 = (UChar* )"(?@.)(?@.)(?@.)(?@.)";
+ OnigEncoding use_encs[] = { ONIG_ENCODING_ASCII };
+ onig_initialize(use_encs, sizeof(use_encs)/sizeof(use_encs[0]));
+
/* enable capture hostory */
onig_copy_syntax(&syn, ONIG_SYNTAX_DEFAULT);
onig_set_syntax_op2(&syn,