summaryrefslogtreecommitdiffstats
path: root/chinese/dictd/files/patch-dictfmt.c
blob: 6ed99b84a2b2e8e544eaa1a20aff431b0e709f9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- 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++ = ' ';
OpenPOWER on IntegriCloud