Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Apr 2010 16:51:05 +0200
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: libc NLS, NFS mounted /usr/local, DHCP, no default route causes hangs
Message-ID:  <20100423145105.GA3010@britannica.bec.de>
In-Reply-To: <20100423144035.GB41934@stack.nl>
References:  <20100423141735.GA41934@stack.nl> <20100423144035.GB41934@stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100423145105.GA3010>