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]>
--- 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;