summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-01 14:05:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-01 14:05:53 +0000
commit48ee1ad5e5332c43880df966c687b0867c12fe29 (patch)
tree7db5c3fc8b13c9edd49a2a59bf7a3513c4e1fa82 /parse.y
parent84315c9926a89580f1753ce0de9f565d93cc8388 (diff)
downloadruby-48ee1ad5e5332c43880df966c687b0867c12fe29.tar.gz
ruby-48ee1ad5e5332c43880df966c687b0867c12fe29.tar.xz
ruby-48ee1ad5e5332c43880df966c687b0867c12fe29.zip
* encoding.c: rename primary_encoding -> default_external (encoding).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 972e0ebc2..7f5af4e4e 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);
}