summaryrefslogtreecommitdiffstats
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
parent7e9e4fff045a3d772c761660dcc3a951ec8dca18 (diff)
* 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
-rw-r--r--ChangeLog4
-rw-r--r--string.c2
-rw-r--r--version.h6
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index fa3efcfa6..eeb90d8af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Oct 10 14:31:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_enc_str_coderange): fixed checkfor non-ascii.
+
Tue Oct 9 21:35:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_permutation, rb_ary_combination): missing type
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;
}
diff --git a/version.h b/version.h
index c89a19bd7..1f6cf069f 100644
--- a/version.h
+++ b/version.h
@@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
-#define RUBY_RELEASE_DATE "2007-10-09"
+#define RUBY_RELEASE_DATE "2007-10-10"
#define RUBY_VERSION_CODE 190
-#define RUBY_RELEASE_CODE 20071009
+#define RUBY_RELEASE_CODE 20071010
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 10
-#define RUBY_RELEASE_DAY 9
+#define RUBY_RELEASE_DAY 10
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];