mysql:630
From: Seiji Tateyama <Seiji Tateyama <tateyan@xxxxxxxxxx>>
Date: Fri, 22 Jan 1999 23:12:24 +0900
Subject: [mysql 00630] PHP3.0.6 漢字 SJIS 対応パッチ
舘山です まだ 細かいチェックはしてませんが(^^ゞ 一応動作してます /********************************************************************/ /* WRCODE で切り替えてます */ /********************************************************************/ --- functions/kanjiconv.c.org Fri Jan 22 23:01:23 1999 +++ functions/kanjiconv.c Fri Jan 22 23:04:39 1999 @@ -128,7 +128,7 @@ /* KI KO */ /* ^[$B ^[(B JIS 83 */ /* */ - +#define WRCODE SJIS /************************************************************************/ /* */ /* Modified (a lot ;-) by o3(mitsu@xxxxxxxxxx) */ @@ -853,7 +853,7 @@ unsigned char c; if(*++p=='\0') - return EUC; + return WRCODE; while(1){ if(c=='\033'){ @@ -902,7 +902,7 @@ break; } - return EUC; + return WRCODE; } static int @@ -1035,7 +1035,7 @@ else KANJI_GLOBAL(output_kanji_code)=EUC; } - else KANJI_GLOBAL(output_kanji_code)=EUC; + else KANJI_GLOBAL(output_kanji_code)=WRCODE; } void @@ -1069,7 +1069,7 @@ ret=(unsigned char*)emalloc(2*strlen(str)+1); - (*kfunction_table[KANJI_GLOBAL(output_kanji_code)][EUC])(ret,str); + (*kfunction_table[KANJI_GLOBAL(output_kanji_code)][WRCODE])(ret,str); php3_apache_puts(ret); efree(ret); @@ -1086,7 +1086,7 @@ *(str+n)='\0'; ret=(unsigned char*)emalloc(2*strlen(str)+1); - (*kfunction_table[KANJI_GLOBAL(output_kanji_code)][EUC])(ret,str); + (*kfunction_table[KANJI_GLOBAL(output_kanji_code)][WRCODE])(ret,str); retlen = rwrite((ret),strlen(ret),GLOBAL(php3_rqst)); efree(ret); @@ -1102,7 +1102,7 @@ ret=(unsigned char*)emalloc(2*strlen(str)+1); - (*kfunction_table[KANJI_GLOBAL(output_kanji_code)][EUC])(ret,str); + (*kfunction_table[KANJI_GLOBAL(output_kanji_code)][WRCODE])(ret,str); retlen = fwrite((ret),strlen(ret),1,fp); -------- たてやんっす tateyan@xxxxxxxxxx
614 1999-01-22 09:05 ["Satoshi Tatsuoka" <] MyODBC EUC Ver 0.02 616 1999-01-22 12:05 ┗[Masato Toyoshima <wm] 620 1999-01-22 13:38 ┗[Seiji tateyama <tate] PHP3.0.6 漢字 SJIS 対応 622 1999-01-22 15:49 ┗[Masato Toyoshima <wm] -> 630 1999-01-22 23:12 ┗[Seiji Tateyama <tate] PHP3.0.6 漢字 SJIS 対応パッチ 631 1999-01-23 00:41 ┣[Masato Toyoshima <wm] 632 1999-01-23 01:49 ┣[<takeshi@xxxxxxxxxx>] 634 1999-01-23 02:48 ┗[<takeshi@xxxxxxxxxx>]