Skip to content

Commit 8325be2

Browse files
committed
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.
1 parent 47a048f commit 8325be2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/backend/utils/adt/formatting.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -----------------------------------------------------------------------
22
* formatting.c
33
*
4-
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.105 2006/02/12 19:52:06 momjian Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.106 2006/02/12 23:48:23 momjian Exp $
55
*
66
*
77
* Portions Copyright (c) 1999-2005, PostgreSQL Global Development Group
@@ -3720,16 +3720,15 @@ NUM_prepare_locale(NUMProc *Np)
37203720
else
37213721
Np->L_negative_sign = "-";
37223722

3723-
/* Might be "" */
3724-
if (lconv->positive_sign)
3723+
if (lconv->positive_sign && *lconv->positive_sign)
37253724
Np->L_positive_sign = lconv->positive_sign;
37263725
else
37273726
Np->L_positive_sign = "+";
37283727

37293728
/*
3730-
* Number thousands separator (might be "")
3729+
* Number thousands separator
37313730
*/
3732-
if (lconv->thousands_sep)
3731+
if (lconv->thousands_sep && *lconv->thousands_sep)
37333732
Np->L_thousands_sep = lconv->thousands_sep;
37343733
else
37353734
Np->L_thousands_sep = ",";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy