Re: [HACKERS] wrong behavior using to_char() again

2007-11-23 Thread Bruce Momjian
Euler Taveira de Oliveira wrote: > Bruce Momjian wrote: > > > I am confused. You stated in your earlier email: > > > >> Looking again at bug report [1], I agree that's a glibc bug. Numbers > >> in pt_BR has its format 1.234.567,89; sometimes the format 1234567,89 > >> is acceptable too, ie, the

Re: [PATCHES] [HACKERS] wrong behavior using to_char() again

2007-11-23 Thread Alvaro Herrera
Euler Taveira de Oliveira wrote: > Bruce Momjian wrote: > > > OK, I researched this and realized it should have been obvious to me > > when I added this code in 2006 that making the thousands separator > > always "," for a locale of "" was going to cause a problem. > > > I tested your patch and I

Re: [HACKERS] wrong behavior using to_char() again

2007-11-22 Thread Euler Taveira de Oliveira
Bruce Momjian wrote: > I am confused. You stated in your earlier email: > >> Looking again at bug report [1], I agree that's a glibc bug. Numbers >> in pt_BR has its format 1.234.567,89; sometimes the format 1234567,89 >> is acceptable too, ie, the thousand separator is optional. I guess > > s

Re: [HACKERS] wrong behavior using to_char() again

2007-11-22 Thread Bruce Momjian
Euler Taveira de Oliveira wrote: > Bruce Momjian wrote: > > > OK, I researched this and realized it should have been obvious to me > > when I added this code in 2006 that making the thousands separator > > always "," for a locale of "" was going to cause a problem. > > > I tested your patch and I

Re: [HACKERS] wrong behavior using to_char() again

2007-11-22 Thread Euler Taveira de Oliveira
Bruce Momjian wrote: > OK, I researched this and realized it should have been obvious to me > when I added this code in 2006 that making the thousands separator > always "," for a locale of "" was going to cause a problem. > I tested your patch and IMHO it breaks the glibc behavior. I'm providing

Re: [HACKERS] wrong behavior using to_char() again

2007-11-21 Thread Alvaro Herrera
Euler Taveira de Oliveira wrote: > Hi, > > Looking again at bug report [1], I agree that's a glibc bug. Numbers in > pt_BR has its format 1.234.567,89; sometimes the format 1234567,89 is > acceptable too, ie, the thousand separator is optional. I guess that > some locales use the 'optional' thousa

[HACKERS] wrong behavior using to_char() again

2007-11-17 Thread Euler Taveira de Oliveira
Hi, Looking again at bug report [1], I agree that's a glibc bug. Numbers in pt_BR has its format 1.234.567,89; sometimes the format 1234567,89 is acceptable too, ie, the thousand separator is optional. I guess that some locales use the 'optional' thousand separator too (yep, they are all broken to