Rename ENCINDEX_ASCII to ENCINDEX_ASCII_8BIT

Otherwise it's way too easy to confuse it with US_ASCII.
This commit is contained in:
Jean Boussier 2022-07-13 11:54:08 +02:00
parent 85ea46730d
commit d084585f01
Notes: git 2022-07-19 15:49:19 +09:00
8 changed files with 28 additions and 26 deletions

6
dir.c
View file

@ -709,7 +709,7 @@ static int
fundamental_encoding_p(rb_encoding *enc)
{
switch (rb_enc_to_index(enc)) {
case ENCINDEX_ASCII:
case ENCINDEX_ASCII_8BIT:
case ENCINDEX_US_ASCII:
case ENCINDEX_UTF_8:
return TRUE;
@ -1131,8 +1131,8 @@ rb_dir_getwd(void)
switch (fsenc) {
case ENCINDEX_US_ASCII:
fsenc = ENCINDEX_ASCII;
case ENCINDEX_ASCII:
fsenc = ENCINDEX_ASCII_8BIT;
case ENCINDEX_ASCII_8BIT:
break;
#if defined _WIN32 || defined __APPLE__
default: