• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

nkfのGitリポジトリのfork


Commit MetaInfo

修訂71012057801fe0cdcf0ab9a136c7259e5409ca0e (tree)
時間2010-08-08 22:56:31
作者NARUSE, Yui <naruse@user...>
CommiterNARUSE, Yui

Log Message

Fix type of mimeout_state.buf. [nkf-bug:20079]

It causes wrong cast.

Change Summary

差異

--- a/nkf.c
+++ b/nkf.c
@@ -21,7 +21,7 @@
2121 * 3. This notice may not be removed or altered from any source distribution.
2222 */
2323 #define NKF_VERSION "2.1.1"
24-#define NKF_RELEASE_DATE "2010-04-28"
24+#define NKF_RELEASE_DATE "2010-08-08"
2525 #define COPY_RIGHT \
2626 "Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \
2727 "Copyright (C) 1996-2010, The nkf Project."
@@ -4635,7 +4635,7 @@ static const char basis_64[] =
46354635
46364636 #define MIMEOUT_BUF_LENGTH 74
46374637 static struct {
4638- char buf[MIMEOUT_BUF_LENGTH+1];
4638+ unsigned char buf[MIMEOUT_BUF_LENGTH+1];
46394639 int count;
46404640 } mimeout_state;
46414641
@@ -4947,7 +4947,7 @@ mime_putc(nkf_char c)
49474947 i = 0;
49484948
49494949 for (; i < mimeout_state.count - len; ++i) {
4950- if (!strncmp(mimeout_state.buf+i, str, len)) {
4950+ if (!strncmp((char *)(mimeout_state.buf+i), str, len)) {
49514951 i += len - 2;
49524952 break;
49534953 }
--- a/nkf_test.pl
+++ b/nkf_test.pl
@@ -1032,6 +1032,9 @@ printf "%-40s", "[nkf-forum:47334] ";
10321032 printf "%-40s", "[nkf-bug:20079] ";
10331033 &test("$nkf -jSxM","\xBB \xBB","=?ISO-2022-JP?B?GyhJOxsoQiAbKEk7GyhC?=");
10341034
1035+printf "%-40s", "[nkf-bug:20079] ";
1036+ &test("$nkf -SxMw8","\xBB \xBB","=?UTF-8?B?77u/7727IO+9uw==?=");
1037+
10351038 printf "%-40s", "[nkf-forum:48850] ";
10361039 &test("$nkf -jSM",
10371040 "From: \x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0" .