pkgsrc-Bugs archive

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

pkg/46502: x11/kterm segfault when paste UTF-8 text without -km option



>Number:         46502
>Category:       pkg
>Synopsis:       x11/kterm segfault when paste UTF-8 text without -km option
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 30 15:30:00 +0000 2012
>Originator:     Yasushi Oshima
>Release:        NetBSD/amd64-current
>Organization:
>Environment:
NetBSD tunami 6.99.7 NetBSD 6.99.7 (GENERIC) #0: Wed May 16 03:02:17 JST 2012  
oshima@tunami:/mnt/6.99.7/obj/amd64/sys/arch/amd64/compile/GENERIC amd64

>Description:
When run kterm without -km (or has no set KTerm*kanjiMode resource), then paste 
UTF-8 text by pointer, kterm aborted with SIGSEGV.

After kterm-6.2.0nb22, it works well with -km any Japanese mode option.
However, without any Japanese kanji mode, this problem still occurs. 
>How-To-Repeat:
Run kterm without -km , without KTerm*kanjiMode resource,
and Select text with another Application which supports UTF-8 text selection 
(ex. firefox),then Paste to kterm.
>Fix:
kterm-6.2.0nb22 patch-ad's second part will be as follows:

@@ -1612,6 +1614,7 @@
            update_reversevideo();
        }
 #ifdef KTERM_KANJIMODE
+       make_unicode_map();
        if (term->misc.k_m) {
            switch (term->misc.k_m[0]) {
                case 'e': case 'E': case 'x': case 'X':
@@ -1625,7 +1628,6 @@
                case 'u': case 'U':
                    term->flags |= UTF8_KANJI;
                    update_utf8mode();
-                   make_unicode_map();
                    break;
                default:
                    break;



Home | Main Index | Thread Index | Old Index