summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-02-13 23:32:48 +0000
committerache <ache@FreeBSD.org>2001-02-13 23:32:48 +0000
commitc5730e0f45c6cafaed45d4ef6adf53f2ba6441a5 (patch)
treee15ca149d128280b86ddf46632e4be83f8906b77
parent7e987d1dffccf9f5e300add01ae8314cf34165a1 (diff)
downloadFreeBSD-src-c5730e0f45c6cafaed45d4ef6adf53f2ba6441a5.zip
FreeBSD-src-c5730e0f45c6cafaed45d4ef6adf53f2ba6441a5.tar.gz
Return {YES,NO}STR from locale
Approved by: phantom
-rw-r--r--lib/libc/locale/nl_langinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/locale/nl_langinfo.c b/lib/libc/locale/nl_langinfo.c
index f94736d..65eada3 100644
--- a/lib/libc/locale/nl_langinfo.c
+++ b/lib/libc/locale/nl_langinfo.c
@@ -121,10 +121,10 @@ nl_langinfo(nl_item item) {
ret = (char*) __get_current_messages_locale()->noexpr;
break;
case YESSTR: /* deprecated */
- ret = "";
+ ret = (char*) __get_current_messages_locale()->yesstr;
break;
case NOSTR: /* deprecated */
- ret = "";
+ ret = (char*) __get_current_messages_locale()->nostr;
break;
case CRNCYSTR: /* deprecated */
/* XXX: need to be implemented */
OpenPOWER on IntegriCloud