diff options
author | Jean Boussier <[email protected]> | 2022-07-13 11:54:08 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2022-07-19 08:48:56 +0200 |
commit | d084585f01b57727a5778f2f6723b89c6d98a9d4 (patch) | |
tree | 8358220e50e538c08a89f69544ae0fae0918bee2 /enc/ascii.c | |
parent | 85ea46730deff70172a9f50172f0011a7401f371 (diff) |
Rename ENCINDEX_ASCII to ENCINDEX_ASCII_8BIT
Otherwise it's way too easy to confuse it with US_ASCII.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6127
Diffstat (limited to 'enc/ascii.c')
-rw-r--r-- | enc/ascii.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/enc/ascii.c b/enc/ascii.c index a2fef2f879..ae7db97f25 100644 --- a/enc/ascii.c +++ b/enc/ascii.c @@ -33,8 +33,8 @@ # include "encindex.h" #endif -#ifndef ENCINDEX_ASCII -# define ENCINDEX_ASCII 0 +#ifndef ENCINDEX_ASCII_8BIT +# define ENCINDEX_ASCII_8BIT 0 #endif OnigEncodingDefine(ascii, ASCII) = { @@ -55,7 +55,7 @@ OnigEncodingDefine(ascii, ASCII) = { onigenc_single_byte_left_adjust_char_head, onigenc_always_true_is_allowed_reverse_match, onigenc_single_byte_ascii_only_case_map, - ENCINDEX_ASCII, + ENCINDEX_ASCII_8BIT, ONIGENC_FLAG_NONE, }; ENC_ALIAS("BINARY", "ASCII-8BIT") |