summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 972e0ebc21..7f5af4e4e6 100644
--- a/parse.y
+++ b/parse.y
@@ -4847,7 +4847,7 @@ parser_str_new2(const char *p, long n, rb_encoding *enc, int has8bit,int hasmb)
* instead.
*/
if ((coderange == ENC_CODERANGE_7BIT) && rb_enc_asciicompat(enc))
- enc = rb_enc_default();
+ enc = rb_default_encoding();
return parser_str_new(p, n, enc, coderange);
}