NetBSD Problem Report #53262

From www@NetBSD.org  Sat May  5 00:07:39 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D0C8C7A110
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  5 May 2018 00:07:39 +0000 (UTC)
Message-Id: <20180505000724.927097A1EB@mollari.NetBSD.org>
Date: Sat,  5 May 2018 00:07:24 +0000 (UTC)
From: oshima-ya@yagoto-urayama.jp
Reply-To: oshima-ya@yagoto-urayama.jp
To: gnats-bugs@NetBSD.org
Subject: uim-xim cannot connect correctly from any xim client after inputmethod/uim/Makefile 1.134
X-Send-Pr-Version: www-1.0

>Number:         53262
>Category:       pkg
>Synopsis:       uim-xim cannot connect correctly from any xim client after inputmethod/uim/Makefile 1.134
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 05 00:10:00 +0000 2018
>Originator:     Yasushi Oshima
>Release:        pkgsrc-2018Q1 or current
>Organization:
>Environment:
NetBSD amd64 8.0_RC1
>Description:
After uim/Mafefile 1.134, 

Many xim-clients (xterm, mlterm, firefox, ...) cannot connect to xim-server(uim-xim) even though XMODIFIERS='@im_uim' was set.

When turn-on trace with uim-xim, it says some error:

$ uim-xim -trace 
(snip)
selection notify request for locale.
selection notify request for transport.
accept xim connection.
X error occured. BadWindow (invalid Window parameter)

I try to set uim-xim --async option, it is the same, no effect, 


I want to use this to input Japanese but cannot do.


Before Makefile 1.134, it worked well.

When changes c++03 to gnu++03 or c++ in USE_LANGUAGES in Makefile.1.134 or after, it works well again.

But I don't know why.



>How-To-Repeat:
$ export XMODIFERS='@im=xim'
$ export LANG='ja_JP.UTF-8'
$ uim-xim &
$ xterm &

Input convert-operation in xterm (ex. 'Shift-Space' in the default of uim-xim).


>Fix:
--- a/inputmethod/uim/Makefile
+++ b/inputmethod/uim/Makefile
@@ -12,7 +12,7 @@ CONFLICTS+=           uim-qt4-immodule-[0-9]*
 USE_LIBTOOL=           YES
 USE_PKGLOCALEDIR=      YES
 USE_TOOLS+=            gmake intltool pkg-config msgfmt
-USE_LANGUAGES=         c99 c++03
+USE_LANGUAGES=         c99 gnu++03
 PKGCONFIG_OVERRIDE+=   ${WRKSRC}/uim.pc.in
 GNU_CONFIGURE=         YES
 CONFIGURE_ARGS+=       --disable-emacs

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.