summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 10:05:48 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 10:05:48 +0000
commit5b7dfb7c131627728aee5871bb1a029ab5918b9b (patch)
treec732de0ec07b8e0b9652afe7a27c00c844e7d0ed
parent0ef21e44e7fac96f0919e7d0ef2bf30c47eb2128 (diff)
* enc/shift_jis.c (code_is_ctype): HALF WIDTH KATAKANA is
a character. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--enc/shift_jis.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0ed38ef..b31236d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jul 1 19:01:00 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/shift_jis.c (code_is_ctype): HALF WIDTH KATAKANA is
+ a character.
+
Tue Jul 1 17:56:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* missing/vsnprintf.c (BSD__uqtoa): constified.
diff --git a/enc/shift_jis.c b/enc/shift_jis.c
index 087e7f7..f74afff 100644
--- a/enc/shift_jis.c
+++ b/enc/shift_jis.c
@@ -313,7 +313,7 @@ is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype);
else {
if (CTYPE_IS_WORD_GRAPH_PRINT(ctype)) {
- return (code_to_mbclen(code, enc) > 1 ? TRUE : FALSE);
+ return TRUE;
}
}
}