diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-10 05:31:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-10 05:31:08 +0000 |
commit | 8c19ecbeeb846e254df520b9e339c36a42277ceb (patch) | |
tree | a317d8b73d257de81f346bddef89c6e20da17800 /string.c | |
parent | 7550659a330c099b31c047293a8ab486b8638c8a (diff) |
* string.c (rb_enc_str_coderange): fixed checkfor non-ascii.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -117,7 +117,7 @@ rb_enc_str_coderange(VALUE str) while (p < e) { int c = (unsigned char)*p; - if (c > 0x80) { + if (!isascii(c)) { cr = ENC_CODERANGE_MULTI; break; } |