]> granicus.if.org Git - onig/commitdiff
add initialize function call into win32/testc.c
authorkosako <kosako@sofnec.co.jp>
Mon, 18 Apr 2016 06:20:47 +0000 (15:20 +0900)
committerkosako <kosako@sofnec.co.jp>
Mon, 18 Apr 2016 06:20:47 +0000 (15:20 +0900)
win32/testc.c

index 4b8f037c554085a6c80a3b852d9920ea394739b1..ef8085e18e71418be95ec28efd5fed860fbd6530 100644 (file)
@@ -158,6 +158,12 @@ static void n(char* pattern, char* str)
 \r
 extern int main(int argc, char* argv[])\r
 {\r
+#ifndef POSIX_TEST\r
+  static OnigEncoding use_encs[] = { ONIG_ENCODING_SJIS };\r
+\r
+  onig_initialize(use_encs, sizeof(use_encs)/sizeof(use_encs[0]));\r
+#endif\r
+\r
   err_file = stdout;\r
 \r
 #ifdef POSIX_TEST\r