Print this page
4964 nl_langinfo(CRNCYSTR) returns wrong alignment character
4999 libc test suite enhancements
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: TBD

@@ -154,14 +154,14 @@
         if ((lmon->p_cs_precedes[0] == lmon->n_cs_precedes[0]) &&
             (lmon->currency_symbol[0] != '\0')) {
                 char sign = '\0';
                 switch (lmon->p_cs_precedes[0]) {
                 case 0:
-                        sign = '-';
+                        sign = '+';
                         break;
                 case 1:
-                        sign = '+';
+                        sign = '-';
                         break;
                 case CHAR_MAX:
                         /*
                          * Substitute currency string for radix character.
                          * To the best of my knowledge, no locale uses this.