diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-21 01:36:50 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-21 01:36:50 +0000 |
| commit | 137a2f316ec85debe731e641e58ff82f21c6c96c (patch) | |
| tree | 7fc9f1d842f2a48531b0e81985096d54ad41f807 | |
| parent | 93872e628ad7fff9313667985f6b8bffa39e5039 (diff) | |
| download | ruby-137a2f316ec85debe731e641e58ff82f21c6c96c.tar.gz ruby-137a2f316ec85debe731e641e58ff82f21c6c96c.tar.xz ruby-137a2f316ec85debe731e641e58ff82f21c6c96c.zip | |
* include/ruby/encoding.h (rb_enc_asciicompat): dummy encoding is not
ascii compatible. [ruby-dev:33878]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | include/ruby/encoding.h | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Feb 21 10:35:04 2008 NARUSE, Yui <naruse@ruby-lang.org> + + * include/ruby/encoding.h (rb_enc_asciicompat): dummy encoding is not + ascii compatible. [ruby-dev:33878] + Thu Feb 21 00:01:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * configure.in (RPATHFLAG): -R option of HP-UX ld is not for runtime diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index dcae15a03..622e2fe73 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -154,7 +154,7 @@ int rb_enc_codelen(int code, rb_encoding *enc); #define rb_enc_isspace(c,enc) ONIGENC_IS_CODE_SPACE(enc,c) #define rb_enc_isdigit(c,enc) ONIGENC_IS_CODE_DIGIT(enc,c) -#define rb_enc_asciicompat(enc) (rb_enc_mbminlen(enc)==1) +#define rb_enc_asciicompat(enc) (!rb_enc_dummy_p(enc) && rb_enc_mbminlen(enc)==1) int rb_enc_casefold(char *to, const char *p, const char *e, rb_encoding *enc); int rb_enc_toupper(int c, rb_encoding *enc); |
