Feature #1900: Suggestion: Encoding#ascii_compatible?
http://redmine.ruby-lang.org/issues/show/1900

Author: Brian Candler
Status: Open, Priority: Low

An important property of an Encoding is whether it is ASCII-compatible. However as far as I can see, you can only test for this indirectly, e.g.

  Encoding.compatible?("a".force_encoding("ISO-8859-1"), "a".force_encoding("US-ASCII"))

So I suggest exposing rb_enc_asciicompat as a property of the Encoding objects themselves.


----------------------------------------
http://redmine.ruby-lang.org