summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2014-07-06 12:52:24 -0700
committerGarrett D'Amore <garrett@damore.org>2014-07-15 14:05:46 -0700
commit538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2 (patch)
tree53b18be80f1470a87571c45a8a90cc4597d071bb /usr/src/lib/libc
parente42d205944d245bf5d1c4fc45261cbe09e28a7b9 (diff)
downloadillumos-joyent-538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2.tar.gz
4964 nl_langinfo(CRNCYSTR) returns wrong alignment character
4999 libc test suite enhancements 4939 desire wcsnrtombs() function Reviewed by: Jason King <jason.brian.king@gmail.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r--usr/src/lib/libc/port/llib-lc2
-rw-r--r--usr/src/lib/libc/port/locale/lmonetary.c4
-rw-r--r--usr/src/lib/libc/port/mapfile-vers6
3 files changed, 10 insertions, 2 deletions
diff --git a/usr/src/lib/libc/port/llib-lc b/usr/src/lib/libc/port/llib-lc
index eb2fb4357b..9f493e21d4 100644
--- a/usr/src/lib/libc/port/llib-lc
+++ b/usr/src/lib/libc/port/llib-lc
@@ -24,6 +24,7 @@
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright 2013 OmniTI Computer Consulting, Inc. All rights reserved.
* Copyright (c) 2013 Gary Mills
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
*/
/* LINTLIBRARY */
@@ -165,6 +166,7 @@
#if defined(__amd64)
#include <stack_unwind.h>
#endif
+#include <xlocale.h>
/*
* This really comes from the crt*.s startup modules.
diff --git a/usr/src/lib/libc/port/locale/lmonetary.c b/usr/src/lib/libc/port/locale/lmonetary.c
index 623abc6281..373583171b 100644
--- a/usr/src/lib/libc/port/locale/lmonetary.c
+++ b/usr/src/lib/libc/port/locale/lmonetary.c
@@ -156,10 +156,10 @@ __lc_monetary_load(const char *name)
char sign = '\0';
switch (lmon->p_cs_precedes[0]) {
case 0:
- sign = '-';
+ sign = '+';
break;
case 1:
- sign = '+';
+ sign = '-';
break;
case CHAR_MAX:
/*
diff --git a/usr/src/lib/libc/port/mapfile-vers b/usr/src/lib/libc/port/mapfile-vers
index c07a40aaf5..6509cd1aad 100644
--- a/usr/src/lib/libc/port/mapfile-vers
+++ b/usr/src/lib/libc/port/mapfile-vers
@@ -93,6 +93,12 @@ $if _x86 && _ELF64
$add amd64
$endif
+SYMBOL_VERSION ILLUMOS_0.9 {
+ protected:
+ wcsnrtombs;
+ wcsnrtombs_l;
+} ILLUMOS_0.8;
+
SYMBOL_VERSION ILLUMOS_0.8 { # POSIX 2008 newlocale and friends
protected:
__global_locale;