lynx-dev
[Top][All Lists]
Advanced

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

[Lynx-dev] lynx UTF-8 bookmark name


From: Takao Fujiwara - Tokyo S/W Center
Subject: [Lynx-dev] lynx UTF-8 bookmark name
Date: Tue, 23 Dec 2008 01:15:51 +0900
User-agent: Thunderbird 2.0.0.12 (X11/20080326)

Hi,

Currently I cannot commit UTF-8 strings with input method because 
UCTransToUni() returns -11 and havevisible() checks the return value.
The attached patch can fix this problem.

--- lynx2-8-6/src/LYBookmark.c.orig     2008-12-22 23:08:45.801692000 +0900
+++ lynx2-8-6/src/LYBookmark.c  2008-12-22 23:44:49.813365000 +0900
@@ -988,6 +988,8 @@
        if (LYHaveCJKCharacterSet || !UCCanUniTranslateFrom(current_char_set))
            return (TRUE);
        unicode = UCTransToUni(*p, current_char_set);
+       if (unicode == -11 && LYCharSet_UC[current_char_set].enc == 
UCT_ENC_UTF8)
+           return (TRUE);
        if (unicode > 32 && unicode < 127)
            return (TRUE);
        if (unicode <= 32 || unicode == 0xa0 || unicode == 0xad)

reply via email to

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