From: konn Date: Sat, 22 Nov 2008 16:57:53 +0000 (+0000) Subject: * Fixed bug. X-Git-Tag: v0.12.21~40 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0ee62af83520eaf2d71ed8840123220f9858acdd;p=modchxj%2Fmod_chxj.git * Fixed bug. - Changed the conversion processing for the character-code that was not the specified character-code. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_12_0@4497 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- diff --git a/src/chxj_encoding.c b/src/chxj_encoding.c index 0c37c398..8d1e378c 100644 --- a/src/chxj_encoding.c +++ b/src/chxj_encoding.c @@ -219,8 +219,12 @@ chxj_convert_illegal_charactor_sequence(request_rec *r, chxjconvrule_entry *ent } } else { - *ilen = 0; - return; + /* unknown 1byte charactor */ + **obuf = '?'; + *obuf += 1; + *olen -= 1; + *ibuf += 1; + DBG(r, "passed 1byte."); } if (ibuf && *ibuf) { *ilen = strlen(*ibuf);