summaryrefslogtreecommitdiff
path: root/sample/user_property.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:51 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:51 +0200
commit6b986090d954dbac91bbb3c43ce7c3328c91a780 (patch)
tree34b34e41a3f7b7f4794c75be4482bb14695f36a9 /sample/user_property.c
parent4216de6a3336cbc6dddb572cb7e6ab6193bf3729 (diff)
New upstream version 6.9.5upstream/6.9.5
Diffstat (limited to 'sample/user_property.c')
-rw-r--r--sample/user_property.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sample/user_property.c b/sample/user_property.c
index d52adc0..ecb842c 100644
--- a/sample/user_property.c
+++ b/sample/user_property.c
@@ -13,6 +13,7 @@ main(int argc, char* argv[])
regex_t* reg;
OnigErrorInfo einfo;
OnigRegion *region;
+ OnigEncoding use_encs[1];
static OnigCodePoint handakuon_hiragana[] = {
5, /* number of ranges */
@@ -29,7 +30,7 @@ main(int argc, char* argv[])
/* "PA PI PU PE PO a" */
static UChar* str = (UChar* )"\343\201\261\343\201\264\343\201\267\343\201\272\343\201\275a";
- OnigEncoding use_encs[] = { ONIG_ENCODING_UTF8 };
+ use_encs[0] = ONIG_ENCODING_UTF8;
onig_initialize(use_encs, sizeof(use_encs)/sizeof(use_encs[0]));
r = onig_unicode_define_user_property("HandakuonHiragana", handakuon_hiragana);