NetBSD Problem Report #41129

From  Fri Apr  3 15:07:47 2009
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 2AD4F63B946
	for <>; Fri,  3 Apr 2009 15:07:47 +0000 (UTC)
Message-Id: <>
Date: Fri,  3 Apr 2009 15:07:46 +0000 (UTC)
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
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) {

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.

Get rid of stupid sleep(3) in xterm source, but that probably just masks the problem.


From: Jonathan Perkin <>
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

   $ cat .xinitrc
   export LC_CTYPE=en_GB.UTF-8
   $ 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             

From: Jukka Salmi <>
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.


 This email fills a much-needed gap in your mailbox.

State-Changed-From-To: open->feedback
State-Changed-When: Fri, 28 Aug 2009 05:52:13 +0000
this should be fixed now.  please confirm!  thanks.

State-Changed-From-To: feedback->closed
State-Changed-When: Sat, 05 Sep 2009 23:12:40 +0000
Confirmed fixed, thanks matt.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.