summary refs log tree commit diff
path: root/locale/programs/locale.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2013-11-11 18:12:03 +0100
committerAndreas Schwab <schwab@suse.de>2013-11-19 11:53:00 +0100
commitb5449b12962da665c29f0a1c85f705de4bc4abf2 (patch)
tree8df3aee75fac59ef5696cb62a1e87b8d93fe8db2 /locale/programs/locale.c
parente186536b6fa8ceb004dfa1ba45766edcc871a95b (diff)
downloadglibc-b5449b12962da665c29f0a1c85f705de4bc4abf2.tar.gz
glibc-b5449b12962da665c29f0a1c85f705de4bc4abf2.tar.xz
glibc-b5449b12962da665c29f0a1c85f705de4bc4abf2.zip
Complete display of LC_MONETARY
Diffstat (limited to 'locale/programs/locale.c')
-rw-r--r--locale/programs/locale.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/locale/programs/locale.c b/locale/programs/locale.c
index c0bdb6c36d..d2b28d08f8 100644
--- a/locale/programs/locale.c
+++ b/locale/programs/locale.c
@@ -927,6 +927,24 @@ show_info (const char *name)
 	    printf ("%d\n", val.word);
 	  }
 	  break;
+	case wordarray:
+	  {
+	    int first = 1;
+	    union { unsigned int *wordarray; char *string; } val;
+	    int cnt;
+
+	    val.string = nl_langinfo (item->item_id);
+	    if (show_keyword_name)
+	      printf ("%s=", item->name);
+
+	    for (cnt = 0; cnt < item->max; ++cnt)
+	      {
+		printf ("%s%d", first ? "" : ";", val.wordarray[cnt]);
+		first = 0;
+	      }
+	    putchar ('\n');
+	  }
+	  break;
 	case wstring:
 	case wstringarray:
 	case wstringlist: