Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8325be2

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 existingbehavior.
1 parent47a048f commit8325be2

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/1219:52:06 momjian Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.106 2006/02/1223: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)

[8]ページ先頭

©2009-2025 Movatter.jp