Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d1d3f4d0
Commit
d1d3f4d0
authored
Feb 13, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment that to_char() for broken glibc pt_BR might cause a problem.
parent
33c4a77f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
src/backend/utils/adt/formatting.c
src/backend/utils/adt/formatting.c
+16
-12
No files found.
src/backend/utils/adt/formatting.c
View file @
d1d3f4d0
/* -----------------------------------------------------------------------
* formatting.c
*
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.12
2 2007/02/09 04:17:58
momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.12
3 2007/02/13 02:00:55
momjian Exp $
*
*
* Portions Copyright (c) 1999-2007, PostgreSQL Global Development Group
...
...
@@ -3834,14 +3834,6 @@ NUM_prepare_locale(NUMProc *Np)
else
Np
->
L_positive_sign
=
"+"
;
/*
* Number thousands separator
*/
if
(
lconv
->
thousands_sep
&&
*
lconv
->
thousands_sep
)
Np
->
L_thousands_sep
=
lconv
->
thousands_sep
;
else
Np
->
L_thousands_sep
=
","
;
/*
* Number decimal point
*/
...
...
@@ -3850,6 +3842,21 @@ NUM_prepare_locale(NUMProc *Np)
else
Np
->
decimal
=
"."
;
if
(
!
IS_LDECIMAL
(
Np
->
Num
))
Np
->
decimal
=
"."
;
/*
* Number thousands separator
*
* Some locales (e.g. broken glibc pt_BR), have a comma for
* decimal, but "" for thousands_sep, so we might make the
* thousands_sep comma too. 2007-02-12
*/
if
(
lconv
->
thousands_sep
&&
*
lconv
->
thousands_sep
)
Np
->
L_thousands_sep
=
lconv
->
thousands_sep
;
else
Np
->
L_thousands_sep
=
","
;
/*
* Currency symbol
*/
...
...
@@ -3857,9 +3864,6 @@ NUM_prepare_locale(NUMProc *Np)
Np
->
L_currency_symbol
=
lconv
->
currency_symbol
;
else
Np
->
L_currency_symbol
=
" "
;
if
(
!
IS_LDECIMAL
(
Np
->
Num
))
Np
->
decimal
=
"."
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment