Module Name:    src
Committed By:   yamt
Date:           Mon Jul 30 23:02:41 UTC 2012

Modified Files:
        src/lib/libc/nls: catopen.c

Log Message:
comment


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/nls/catopen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/nls/catopen.c
diff -u src/lib/libc/nls/catopen.c:1.30 src/lib/libc/nls/catopen.c:1.31
--- src/lib/libc/nls/catopen.c:1.30	Tue Mar 20 17:44:18 2012
+++ src/lib/libc/nls/catopen.c	Mon Jul 30 23:02:41 2012
@@ -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, '/'))

Reply via email to