mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fallback to built-in UTF-8 for miniruby
Source code encoding is defaulted to UTF-8 now too.
This commit is contained in:
parent
8c3a60df2a
commit
9e67a38fde
1 changed files with 1 additions and 1 deletions
|
@ -1376,7 +1376,7 @@ rb_locale_encindex(void)
|
||||||
{
|
{
|
||||||
int idx = rb_locale_charmap_index();
|
int idx = rb_locale_charmap_index();
|
||||||
|
|
||||||
if (idx < 0) idx = ENCINDEX_ASCII;
|
if (idx < 0) idx = ENCINDEX_UTF_8;
|
||||||
|
|
||||||
if (rb_enc_registered("locale") < 0) {
|
if (rb_enc_registered("locale") < 0) {
|
||||||
# if defined _WIN32
|
# if defined _WIN32
|
||||||
|
|
Loading…
Add table
Reference in a new issue