NetBSD Problem Report #41129
From www@NetBSD.org Fri Apr 3 15:07:47 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 2AD4F63B946
for <gnats-bugs@gnats.netbsd.org>; Fri, 3 Apr 2009 15:07:47 +0000 (UTC)
Message-Id: <20090403150746.DEF5A63B8C8@www.NetBSD.org>
Date: Fri, 3 Apr 2009 15:07:46 +0000 (UTC)
From: sketch@netbsd.org
Reply-To: sketch@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: xterm does not like some UTF-8 LC_CTYPE
X-Send-Pr-Version: www-1.0
>Number: 41129
>Category: xsrc
>Synopsis: xterm does not like some UTF-8 LC_CTYPE
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: xsrc-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 03 15:10:00 +0000 2009
>Closed-Date: Sat Sep 05 23:12:40 +0000 2009
>Last-Modified: Sat Sep 05 23:12:40 +0000 2009
>Originator: Jonathan Perkin
>Release: 5.99.8
>Organization:
>Environment:
>Description:
I'm using 20090328000Z i386 snapshot.
$ env LC_CTYPE=en_GB.ISO8859-1 xterm # fine
$ env LC_CTYPE=en_GB.ISO8859-15 xterm # fine
$ env LC_CTYPE=en_GB.UTF-8 xterm
Failed to open input method
Ordinarily this wouldn't be a huge problem, but for some reason xterm has this glob of lard in xsrc/external/mit/xterm/dist/charproc.c:
if (term->screen.xic == NULL && !term->misc.cannot_im) {
sleep(3);
locale -a shows all locales installed ok, I get the same error with en_US.UTF-8 but not with zh_TW.UTF-8 (for example) so it's not necessarily just a UTF-8 problem.
>How-To-Repeat:
>Fix:
Get rid of stupid sleep(3) in xterm source, but that probably just masks the problem.
>Release-Note:
>Audit-Trail:
From: Jonathan Perkin <sketch@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: xsrc/41129: xterm does not like some UTF-8 LC_CTYPE
Date: Fri, 01 May 2009 12:40:01 +0100
Perhaps more concerning is this also directly affects twm to the point
where it will not start.
Using a completely fresh NetBSD 5.0/i386 install, you can repeat this
with:
$ cat .xinitrc
export LC_CTYPE=en_GB.UTF-8
twm
$ startx
twm will bail with
twm: unable to open fontset "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
Remove LC_CTYPE, or set it to working alternatives mentioned in the
original bug report and it starts fine.
--
Jonathan Perkin The NetBSD Project
http://www.perkin.org.uk/ http://www.netbsd.org/
From: Jukka Salmi <j+nbsd@2009.salmi.ch>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: xsrc/41129: xterm does not like some UTF-8 LC_CTYPE
Date: Sun, 21 Jun 2009 10:25:53 +0200
Just for the record, Nhat Minh hast [1]posted what seems to be a fix for
this problem.
[1] http://mail-index.netbsd.org/tech-x11/2009/06/07/msg000511.html
--
This email fills a much-needed gap in your mailbox.
State-Changed-From-To: open->feedback
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Fri, 28 Aug 2009 05:52:13 +0000
State-Changed-Why:
this should be fixed now. please confirm! thanks.
State-Changed-From-To: feedback->closed
State-Changed-By: sketch@NetBSD.org
State-Changed-When: Sat, 05 Sep 2009 23:12:40 +0000
State-Changed-Why:
Confirmed fixed, thanks matt.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.