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.
This commit is contained in:
parent
47a048f3f3
commit
8325be229c
@ -1,7 +1,7 @@
|
|||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
* formatting.c
|
* 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
|
* Portions Copyright (c) 1999-2005, PostgreSQL Global Development Group
|
||||||
@ -3720,16 +3720,15 @@ NUM_prepare_locale(NUMProc *Np)
|
|||||||
else
|
else
|
||||||
Np->L_negative_sign = "-";
|
Np->L_negative_sign = "-";
|
||||||
|
|
||||||
/* Might be "" */
|
if (lconv->positive_sign && *lconv->positive_sign)
|
||||||
if (lconv->positive_sign)
|
|
||||||
Np->L_positive_sign = lconv->positive_sign;
|
Np->L_positive_sign = lconv->positive_sign;
|
||||||
else
|
else
|
||||||
Np->L_positive_sign = "+";
|
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;
|
Np->L_thousands_sep = lconv->thousands_sep;
|
||||||
else
|
else
|
||||||
Np->L_thousands_sep = ",";
|
Np->L_thousands_sep = ",";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user