Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 8b9745b6c9d72e9bc5ca67404af47e5ab766b5f9 1 parent 9994f90
Laurent Sansonetti authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 encoding.c
4 encoding.c
@@ -77,6 +77,10 @@ enc_init_db(void)
77 77 }
78 78
79 79 assert(CFDictionaryGetCount((CFDictionaryRef)__encodings) > 0);
  80 +
  81 + // Define shortcuts.
  82 + rb_define_const(rb_cEncoding, "ASCII_8BIT",
  83 + rb_const_get(rb_cEncoding, rb_intern("US_ASCII")));
80 84 }
81 85
82 86 static VALUE

0 comments on commit 8b9745b

Please sign in to comment.
Something went wrong with that request. Please try again.