freebsd-ports/chinese/dictd/files/patch-dictfmt.c
Edwin Groothuis 94dabbeae2 Maintainer update for chinese/dictd: fix build problem
PR:		ports/45651
Submitted by:	Kuang-che Wu <kcwu@kcwu.dyndns.org>
2002-11-24 01:38:44 +00:00

15 lines
331 B
C

--- dictfmt.c.orig Sun Nov 24 01:25:09 2002
+++ dictfmt.c Sun Nov 24 01:25:23 2002
@@ -208,6 +208,12 @@
while (src && src [0]){
ch = *(const unsigned char *)src;
+ if((ch & 0x80) && *(src+1)) {
+ *dest++ = ch;
+ *dest++ = *(src+1);
+ src+=2;
+ continue;
+ }
if (isspace (ch)){
*dest++ = ' ';