aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/formatting.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-02-12 23:48:23 +0000
committerBruce Momjian <bruce@momjian.us>2006-02-12 23:48:23 +0000
commit8325be229c346cb94b228c13c2f70bb44b65f73d (patch)
tree05b4bef0435c1fc2b30e4e376183cb52043b4e67 /src/backend/utils/adt/formatting.c
parent47a048f3f35353aab4cae14b996f3aad04ab1a27 (diff)
downloadpostgresql-8325be229c346cb94b228c13c2f70bb44b65f73d.tar.gz
postgresql-8325be229c346cb94b228c13c2f70bb44b65f73d.zip
Revert because C locale uses "" for thousands_sep, meaning "n/a", while
French uses "" for "don't want". Seems we have to keep the existing behavior.
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
-rw-r--r--src/backend/utils/adt/formatting.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index 00c2d85b3e7..78ae83b52da 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------------
* formatting.c
*
- * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.105 2006/02/12 19:52:06 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.106 2006/02/12 23:48:23 momjian Exp $
*
*
* Portions Copyright (c) 1999-2005, PostgreSQL Global Development Group
@@ -3720,16 +3720,15 @@ NUM_prepare_locale(NUMProc *Np)
else
Np->L_negative_sign = "-";
- /* Might be "" */
- if (lconv->positive_sign)
+ if (lconv->positive_sign && *lconv->positive_sign)
Np->L_positive_sign = lconv->positive_sign;
else
Np->L_positive_sign = "+";
/*
- * Number thousands separator (might be "")
+ * Number thousands separator
*/
- if (lconv->thousands_sep)
+ if (lconv->thousands_sep && *lconv->thousands_sep)
Np->L_thousands_sep = lconv->thousands_sep;
else
Np->L_thousands_sep = ",";