comment
This commit is contained in:
parent
af5e501578
commit
a143089ba8
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: catopen.c,v 1.30 2012/03/20 17:44:18 matt Exp $ */
|
||||
/* $NetBSD: catopen.c,v 1.31 2012/07/30 23:02:41 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: catopen.c,v 1.30 2012/03/20 17:44:18 matt Exp $");
|
||||
__RCSID("$NetBSD: catopen.c,v 1.31 2012/07/30 23:02:41 yamt Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#define _NLS_PRIVATE
|
||||
|
@ -87,10 +87,13 @@ _catopen(const char *name, int oflag)
|
|||
|
||||
if (issetugid() || (nlspath = getenv("NLSPATH")) == NULL)
|
||||
nlspath = NLS_DEFAULT_PATH;
|
||||
/*
|
||||
* histrical note:
|
||||
* http://www.hauN.org/ml/b-l-j/a/800/828.html (in japanese)
|
||||
*/
|
||||
if (oflag == NL_CAT_LOCALE) {
|
||||
lang = setlocale(LC_MESSAGES, NULL);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
lang = getenv("LANG");
|
||||
}
|
||||
if (lang == NULL || strchr(lang, '/'))
|
||||
|
|
Loading…
Reference in New Issue