197 svc.startd may not pick up locale correctly
authorShampavman <sham.pavman@nexenta.com>
Thu, 07 Apr 2011 23:12:24 +0530
changeset 13339 287b9c4687e8
parent 13338 5c9c658b0bee
child 13340 43bfdefd2c41
197 svc.startd may not pick up locale correctly Reviewed by: Garrett D'Amore <[email protected]> Reviewed by: Albert Lee <[email protected]> Approved by: Gordon Ross <[email protected]>
usr/src/cmd/svc/startd/log.c
--- 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;