summaryrefslogtreecommitdiff
path: root/enc/utf_8.c
diff options
context:
space:
mode:
Diffstat (limited to 'enc/utf_8.c')
-rw-r--r--enc/utf_8.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/enc/utf_8.c b/enc/utf_8.c
index 8ab8792a6d..ae5258dae2 100644
--- a/enc/utf_8.c
+++ b/enc/utf_8.c
@@ -28,6 +28,10 @@
*/
#include "regenc.h"
+#include "encindex.h"
+#ifndef ENCINDEX_UTF_8
+#define ENCINDEX_UTF_8 0
+#endif
#define USE_INVALID_CODE_SCHEME
@@ -424,7 +428,7 @@ OnigEncodingDefine(utf_8, UTF_8) = {
get_ctype_code_range,
left_adjust_char_head,
onigenc_always_true_is_allowed_reverse_match,
- 0,
+ ENCINDEX_UTF_8,
ONIGENC_FLAG_UNICODE,
};
ENC_ALIAS("CP65001", "UTF-8")