• 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

修訂9306cb09cb7c6b1a62aa12a8f1a6bc57a43a328b (tree)
時間2010-03-15 01:56:29
作者NARUSE, Yui <naruse@user...>
CommiterNARUSE, Yui

Log Message

Fix don't break line in ASCII. [nkf-forum:48850]

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-01-29"
24+#define NKF_RELEASE_DATE "2010-03-15"
2525 #define COPY_RIGHT \
2626 "Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \
2727 "Copyright (C) 1996-2010, The nkf Project."
@@ -4693,8 +4693,7 @@ mime_prechar(nkf_char c2, nkf_char c1)
46934693 base64_count = 1;
46944694 }
46954695 } else {
4696- if (!(c2 == 0 && (c1 == CR || c1 == LF)) &&
4697- base64_count + mimeout_state.count/3*4> 66) {
4696+ if ((c2 != 0 || c1 > DEL) && base64_count + mimeout_state.count/3*4> 66) {
46984697 (*o_base64conv)(EOF,0);
46994698 oconv_newline(o_base64conv);
47004699 (*o_base64conv)(0,SP);
--- a/nkf_test.pl
+++ b/nkf_test.pl
@@ -1034,6 +1034,13 @@ printf "%-40s", "[nkf-forum:47334] ";
10341034 printf "%-40s", "[nkf-bug:20079] ";
10351035 &test("$nkf -jSxM","\xBB \xBB","=?ISO-2022-JP?B?GyhJOxsoQiAbKEk7GyhC?=");
10361036
1037+printf "%-40s", "[nkf-forum:48850] ";
1038+ &test("$nkf -jSM",
1039+ "From: \x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0" .
1040+ " <x-xxxx@xxxxxxxxxxxx.co.jp>\n",
1041+ "From: =?ISO-2022-JP?B?GyRCJCIkIiQiJCIkIiQiJCIkIiQiGyhC?=" .
1042+ " <x-xxxx@xxxxxxxxxxxx.co.jp>\n");
1043+
10371044 if (!NKF) {
10381045 printf "%-40s", "Guess NL";
10391046 &command_tests(