diff options
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; } |