Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/nls comment
details: https://anonhg.NetBSD.org/src/rev/5ba3337ad90b
branches: trunk
changeset: 780603:5ba3337ad90b
user: yamt <yamt%NetBSD.org@localhost>
date: Mon Jul 30 23:02:41 2012 +0000
description:
comment
diffstat:
lib/libc/nls/catopen.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r eb53fb4ec2ab -r 5ba3337ad90b lib/libc/nls/catopen.c
--- a/lib/libc/nls/catopen.c Mon Jul 30 22:54:33 2012 +0000
+++ b/lib/libc/nls/catopen.c Mon Jul 30 23:02:41 2012 +0000
@@ -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 @@
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, '/'))
Home |
Main Index |
Thread Index |
Old Index