summaryrefslogtreecommitdiff
path: root/chinese/dictd/files/patch-dictfmt.c
blob: 1c9b5fb675b2308b2b90c08ab602bc46b4553cfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- dictfmt.c.orig	Tue Feb 11 03:08:33 2003
+++ dictfmt.c	Mon Oct 27 22:03:33 2003
@@ -213,6 +213,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++ = ' ';