From 0ee62af83520eaf2d71ed8840123220f9858acdd Mon Sep 17 00:00:00 2001 From: konn Date: Sat, 22 Nov 2008 16:57:53 +0000 Subject: [PATCH] * 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 --- src/chxj_encoding.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); -- 2.11.0