Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Oct 2009 07:13:16 +0000 (UTC)
From:      Edwin Groothuis <edwin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197765 - head/lib/libc/locale
Message-ID:  <200910050713.n957DGvV003647@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: edwin
Date: Mon Oct  5 07:13:15 2009
New Revision: 197765
URL: http://svn.freebsd.org/changeset/base/197765

Log:
  Modified locale(1) to be able to show the altmon_X fields and the [cxX]_fmt's.
  Also modify the "-k list" option to display only fields with a certain prefix.
  
  MFC after:      1 week

Modified:
  head/lib/libc/locale/nl_langinfo.c

Modified: head/lib/libc/locale/nl_langinfo.c
==============================================================================
--- head/lib/libc/locale/nl_langinfo.c	Mon Oct  5 07:11:19 2009	(r197764)
+++ head/lib/libc/locale/nl_langinfo.c	Mon Oct  5 07:13:15 2009	(r197765)
@@ -93,6 +93,12 @@ nl_langinfo(nl_item item)
 	case ABMON_9: case ABMON_10: case ABMON_11: case ABMON_12:
 		ret = (char*) __get_current_time_locale()->mon[_REL(ABMON_1)];
 		break;
+	case ALTMON_1: case ALTMON_2: case ALTMON_3: case ALTMON_4:
+	case ALTMON_5: case ALTMON_6: case ALTMON_7: case ALTMON_8:
+	case ALTMON_9: case ALTMON_10: case ALTMON_11: case ALTMON_12:
+		ret = (char*)
+		    __get_current_time_locale()->alt_month[_REL(ALTMON_1)];
+		break;
 	case ERA:
 		/* XXX: need to be implemented  */
 		ret = "";



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910050713.n957DGvV003647>