From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 23 14:52:26 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D87F91065686 for ; Fri, 23 Apr 2010 14:52:26 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.sonnenberger.org (www.sonnenberger.org [92.79.50.50]) by mx1.freebsd.org (Postfix) with ESMTP id 98CC98FC17 for ; Fri, 23 Apr 2010 14:52:26 +0000 (UTC) Received: from britannica.bec.de (www.sonnenberger.org [192.168.1.10]) by www.sonnenberger.org (Postfix) with ESMTP id 08FCD66665 for ; Fri, 23 Apr 2010 16:52:24 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1000) id BF5CD15C6C; Fri, 23 Apr 2010 16:51:05 +0200 (CEST) Date: Fri, 23 Apr 2010 16:51:05 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20100423145105.GA3010@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20100423141735.GA41934@stack.nl> <20100423144035.GB41934@stack.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100423144035.GB41934@stack.nl> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: libc NLS, NFS mounted /usr/local, DHCP, no default route causes hangs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2010 14:52:26 -0000 On Fri, Apr 23, 2010 at 04:40:36PM +0200, Jilles Tjoelker wrote: > The patch: > > Index: lib/libc/nls/msgcat.c > =================================================================== > --- lib/libc/nls/msgcat.c (revision 206760) > +++ lib/libc/nls/msgcat.c (working copy) > @@ -138,6 +138,9 @@ > lang = "C"; > } > > + if (strcmp(lang, "C") == 0) > + NLRETERR(ENOENT); > + > /* Try to get it from the cache first */ > RLOCK(NLERR); > SLIST_FOREACH(np, &cache, list) { This is wrong. Just because you are in the C locale doesn't mean that you don't have a message cataloge. Joerg