From 26eb7bd3b03d48a3975ec228b0d240803fa2ab00 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Wed, 4 Apr 2018 15:27:02 +0900 Subject: [PATCH] re-define ONIGENC_IS_ASCII_COMPATIBLE_ENCODING() --- src/regenc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/regenc.h b/src/regenc.h index 3d28786..12d5105 100644 --- a/src/regenc.h +++ b/src/regenc.h @@ -256,6 +256,7 @@ extern const unsigned short OnigEncAsciiCtypeTable[]; #define ONIGENC_IS_UNICODE_ENCODING(enc) \ ((enc)->is_code_ctype == onigenc_unicode_is_code_ctype) -#define ONIGENC_IS_ASCII_COMPATIBLE_ENCODING(enc) ((enc)->min_enc_len == 1) +#define ONIGENC_IS_ASCII_COMPATIBLE_ENCODING(enc) \ + (((enc)->flag & ENC_FLAG_ASCII_COMPATIBLE) != 0) #endif /* REGENC_H */ -- 2.40.0