Skip to content

Commit

Permalink
* include/ruby/encoding.h (rb_enc_asciicompat): dummy encoding is not
Browse files Browse the repository at this point in the history
  ascii compatible. [ruby-dev:33878]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Feb 21, 2008
1 parent e16fddf commit 4701476
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Feb 21 10:35:04 2008 NARUSE, Yui <[email protected]>

* 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 <[email protected]>

* configure.in (RPATHFLAG): -R option of HP-UX ld is not for runtime
Expand Down
2 changes: 1 addition & 1 deletion include/ruby/encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4701476

Please sign in to comment.