mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Rename ENCINDEX_ASCII to ENCINDEX_ASCII_8BIT
Otherwise it's way too easy to confuse it with US_ASCII.
This commit is contained in:
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
6
dir.c
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue