lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev CJK partial highliting of link in dev.13 (Ok)


From: Hiroyuki Senshu
Subject: Re: lynx-dev CJK partial highliting of link in dev.13 (Ok)
Date: Fri, 22 Oct 1999 23:12:09 +0900

Klaus Weide wrote:
>Anyway, the correction for the new (and the old and less obvious)
>problem would be to fix LYmbcsstrlen.  It isn't called anywhere else,
>and the 2 or 3 places where it is called expect the cell-couunting
>behavior.
>
>Please test the following "patch":
>
>In LYStrings.c at the end of function 'PUBLIC int LYmbcsstrlen',
>remove the following four lines:
>
>        } else if (!utf_flag && HTCJK != NOCJK && !isascii(str[i]) &&
>                    str[(i + 1)] != '\0' &&
>                    !IsSpecialAttrChar(str[(i + 1)])) {
>            i++;
>
>
>
>(I admit I haven't tested it at all yet.  It *should* be right...)


I tried to apply a patch in accordance with Klaus' indication.

A result is *good*.

It appreciates rapid correspondence.

And, diff file for Win32 at present is attached.

---------
diff -Bur lynx283.d13/makefile.bcb lynx283.w32/makefile.bcb
--- lynx283.d13/makefile.bcb    Fri Oct 22 22:36:34 1999
+++ lynx283.w32/makefile.bcb    Fri Oct 22 22:52:04 1999
@@ -577,9 +578,14 @@
  $(CEAT_lynxdexe) $(CC_FLAGS) -o$@ src/LYUpload.c
 |
 
-$(OBJ)/lyutils.obj :  src/lyutils.c
+$(OBJ)/LYUtils.obj :  src/LYUtils.c
   $(BCC32) -P- -c @&&|
- $(CEAT_lynxdexe) $(CC_FLAGS) -o$@ src/lyutils.c
+ $(CEAT_lynxdexe) $(CC_FLAGS) -o$@ src/LYUtils.c
+|
+
+$(OBJ)/TRSTable.obj :  src/TRSTable.c
+  $(BCC32) -P- -c @&&|
+ $(CEAT_lynxdexe) $(CC_FLAGS) -o$@ src/TRSTable.c
 |
 
 $(OBJ)/xsystem.obj :  src/xsystem.c
diff -Bur lynx283.d13/src/LYStrings.c lynx283.w32/src/LYStrings.c
--- lynx283.d13/src/LYStrings.c Fri Oct 22 22:36:38 1999
+++ lynx283.w32/src/LYStrings.c Fri Oct 22 22:45:46 1999
@@ -550,11 +550,14 @@
                i++;
                j++;
            }
-       } else if (!utf_flag && HTCJK != NOCJK && !isascii(str[i]) &&
+       }
+#if 0  /* 1999/10/22 (Fri) 22:45:38 */
+       else if (!utf_flag && HTCJK != NOCJK && !isascii(str[i]) &&
                    str[(i + 1)] != '\0' &&
                    !IsSpecialAttrChar(str[(i + 1)])) {
            i++;
        }
+#endif
     }
 
     return(len);
----

--
Shonai College of Industry and Technology.
Electronics and Computer Infomation Course.
E-mail: address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]