Permalink
Browse files

rb_enc_to_index returns ASCII-8BIT if encoding is NULL.

  • Loading branch information...
1 parent 13539c9 commit 890efdeb9ca1660359041f5af5e71480b5a26099 @brixen brixen committed Oct 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 vm/capi/encoding.cpp
@@ -267,7 +267,7 @@ extern "C" {
if(enc) {
return rb_enc_find_index(rb_enc_name(enc));
} else {
- return 0;
+ return Encoding::eBinary;
}
}

0 comments on commit 890efde

Please sign in to comment.