From nobody Mon Jul 18 19:50:09 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Lmsxs6blkz4X1ZG for ; Mon, 18 Jul 2022 19:50:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lmsxs4X7Kz3kb9 for ; Mon, 18 Jul 2022 19:50:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lmsxs3VqrzrgS for ; Mon, 18 Jul 2022 19:50:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26IJo9F6087207 for ; Mon, 18 Jul 2022 19:50:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26IJo9Fx087206 for bugs@FreeBSD.org; Mon, 18 Jul 2022 19:50:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265260] HANGEUL and HANJA on Korean keyboards do not work. Date: Mon, 18 Jul 2022 19:50:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: warioburn@yahoo.co.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658173809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=octpp/+iyYVcJm5b98FieftO1FD1gYTmGomgiX7kV7w=; b=vPugDghLlsTS0d9hStD1pwDPjfF6QBge9zvskf2p8rerRn1wXRTFCn2a8pVIHYnM9rz3Wg sBvv6w9LEcCUNyB3pBfKPbeDlM/d/f/6gynRxmiRZ0l+sL0JomOzPZVYbgW58XNeRZ2wre xQH6sWPRoT/27cLVXJKHpZ7X7rSh3sSJAZQobN/8aUz/spn//UUn5hfJnNqzPZEXPQorH8 jTzZ3GVmKJEPSqovA2o144F7BkzpImHVEW6/0+5qSFmpbLtz7dQ7xfMJy1u2SASiJTmhvt EWqLAXGp1ixtxQqnEmQz1cbbZ3n+re+ooPa0TdVcZom1UDNiFwBLrzK+FWJThQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658173809; a=rsa-sha256; cv=none; b=Iki/3/iu6TDeUJeOYK5Kz8WOrqE6oUQiLIaFAz5ITtuV9ku09SqLEERhUvzNE9wOUEPM4z Tn7LNCr2//OljKujVLFiJ4rYxBuJrNmfNDnmC3P7gj4T/EjgvhtpxPp6VVBzKtC9AemS8s KnpP4IVuKKdu6pfSW9m/qpn4YIi3Z8dZoplj+1FV0G1Hi7JExVd5wLHwEVym4VxSWt+Svr UKOWpt2fKQWA+4CpFvbowjCtd807kmKulo5A8K/GTSoWMsMRx3qYqtyVC+7/eDc7goOrh4 varxNHyXmlX/pKvSSRcjRTFH+MTOBd+dOAJA1le0+qIN/eLXc9jHLqTyOmiSgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265260 --- Comment #1 from warioburn --- Oops, There was a mistake. Chinese key is 0xF1, hanyoung key is 0xf2, as opposed to usb. Anyway, I found a workaround about xorg-xf86-input-keyboard. static int isKoreankey(unsigned char c) { return c =3D=3D 0xF1 || c=3D=3D 0xF2; } static void stdReadInput(InputInfoPtr pInfo) { KbdDevPtr pKbd =3D (KbdDevPtr) pInfo->private; unsigned char rBuf[64]; int nBytes, i; if ((nBytes =3D read( pInfo->fd, (char *)rBuf, sizeof(rBuf))) > 0) { for (i =3D 0; i < nBytes; i++) if(isKoreankey(rBuf[i])){ pKbd->PostEvent(pInfo, rBuf[i], TRUE); pKbd->PostEvent(pInfo, rBuf[i], FALSE); }else{ pKbd->PostEvent(pInfo, rBuf[i] & 0x7f, rBuf[i] & 0x80 ? FALSE : TRUE); } } } It's not pretty code, but it seems to work. If there is no problem, I'll ma= ke a bug report about it later. It's not ideal, but I think there is no choice but to take the same approach for evdev . if (keycode !=3D KEY_RESERVED) { if(Korean key){ evdev_push_event(state->ks_evdev, EV_KEY,(uint16_t)keycode, 1); evdev_push_event(state->ks_evdev, EV_KEY,(uint16_t)keycode, 0); evdev_sync(state->ks_evdev); }else{ //do like before } } K_CODE mode also similar code. /* keycode to key action */ action =3D genkbd_keyaction(kbd, keycode, scancode & 0x80, &state->ks_state, &state->ks_accents); The workaround will be similar. --=20 You are receiving this mail because: You are the assignee for the bug.=