libc NLS, NFS mounted /usr/local, DHCP, no default route causes hangs

Joerg Sonnenberger joerg at britannica.bec.de
Fri Apr 23 14:52:26 UTC 2010


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


More information about the freebsd-hackers mailing list