[PRISM] Implement regex encoding flags
Added the correct encoding to the allocated regex. This required making a new method to set the encoding and pass that to rb_enc_reg_new instead of rb_reg_new. The former rb_reg_new would set the encoding to ASCII8BIT regardless of encoding flag.
rb_enc_reg_new
rb_reg_new
[PRISM] Implement regex encoding flags
Added the correct encoding to the allocated regex. This required making
a new method to set the encoding and pass that to
rb_enc_reg_newinstead of
rb_reg_new. The formerrb_reg_newwould set the encodingto ASCII8BIT regardless of encoding flag.