summaryrefslogtreecommitdiff
path: root/sample/user_property.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-21 06:47:36 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-21 06:47:36 +0200
commita792c4308d32f68f34131ff89e124190e4513c38 (patch)
tree68d5ba9857cafd597ea84011077a83e43f2d1620 /sample/user_property.c
parent9e629c8f43b43617fa5b7d3654f7d81e81b8a427 (diff)
parentd1ffcb88ee95aded1bc4aef56f4f39951ad03ceb (diff)
Merge branch 'release/debian/6.9.5-1'debian/6.9.5-1
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);