changeset 13339:287b9c4687e8

197 svc.startd may not pick up locale correctly Reviewed by: Garrett D'Amore <garrett@nexenta.com> Reviewed by: Albert Lee <trisk@nexenta.com> Approved by: Gordon Ross <gwr@nexenta.com>
author Shampavman <sham.pavman@nexenta.com>
date Thu, 07 Apr 2011 23:12:24 +0530
parents 5c9c658b0bee
children 43bfdefd2c41
files usr/src/cmd/svc/startd/log.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/svc/startd/log.c	Fri Apr 15 09:13:23 2011 -0700
+++ b/usr/src/cmd/svc/startd/log.c	Thu Apr 07 23:12:24 2011 +0530
@@ -21,6 +21,7 @@
 /*
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ * Copyright 2011 Nexenta Systems. All rights reserved.
  */
 
 /*
@@ -634,7 +635,7 @@
 
 	if (!st->st_log_locale_known && stat(FS_LOCALE_DIR, &sb) == 0) {
 		(void) setlocale(LC_ALL, "");
-		st->st_locale = setlocale(LC_MESSAGES, "");
+		st->st_locale = setlocale(LC_MESSAGES, NULL);
 		if (st->st_locale)
 			st->st_log_locale_known = 1;