summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 7169614..0311bf0 100644
--- a/dir.c
+++ b/dir.c
@@ -491,7 +491,7 @@ dir_initialize(int argc, VALUE *argv, VALUE dir)
const char *path;
if (!keyword_ids[0]) {
- keyword_ids[0] = rb_intern("encoding");
+ keyword_ids[0] = rb_id_encoding();
}
fsenc = rb_filesystem_encoding();