summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-10 05:31:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-10 05:31:08 +0000
commitcd76c9103a3467dd5e13785976f46262094098ac (patch)
treea317d8b73d257de81f346bddef89c6e20da17800 /string.c
parent7e9e4fff045a3d772c761660dcc3a951ec8dca18 (diff)
downloadruby-cd76c9103a3467dd5e13785976f46262094098ac.tar.gz
ruby-cd76c9103a3467dd5e13785976f46262094098ac.tar.xz
ruby-cd76c9103a3467dd5e13785976f46262094098ac.zip
* string.c (rb_enc_str_coderange): fixed checkfor non-ascii.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 8210f8dcb..4969b7513 100644
--- a/string.c
+++ b/string.c
@@ -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;
}