Permalink
Browse files

define Encoding::ASCII_8BIT as a shortcut to US_ASCII (for now)

  • Loading branch information...
1 parent 9994f90 commit 8b9745b6c9d72e9bc5ca67404af47e5ab766b5f9 @lrz lrz committed Jun 4, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 encoding.c
View
4 encoding.c
@@ -77,6 +77,10 @@ enc_init_db(void)
}
assert(CFDictionaryGetCount((CFDictionaryRef)__encodings) > 0);
+
+ // Define shortcuts.
+ rb_define_const(rb_cEncoding, "ASCII_8BIT",
+ rb_const_get(rb_cEncoding, rb_intern("US_ASCII")));
}
static VALUE

0 comments on commit 8b9745b

Please sign in to comment.