Re: margins definition with LC_NUMERIC=pt_BR
Everton Luis Berz <[email protected]> Tue, 02 Aug 2005 16:54:25 -0300
| Newsgroups | gmane.text.rlib.user |
|---|---|
| Organization | Faccat |
| Message-ID | <[email protected]> |
Sorry, but only works when LC_NUMERIC *at PHP* is 'C'. So, if LC_ALL or LC_NUMERIC is 'pt_BR' (on PHP) then report displays the same wrong values. Example: <?php setlocale(LC_NUMERIC, 'pt_BR'); //my php code that requires LC_NUMERIC pt_BR ... rlib_set_locale($rlib, 'pt_BR'); ... ?> Output (wrong): 12.345,00 R$ 9876,00 123,00 R$ 12.345,00 R$ If i comment setlocale line: <?php //setlocale(LC_NUMERIC, 'pt_BR'); //my php code that requires LC_NUMERIC pt_BR ... rlib_set_locale($rlib, 'pt_BR'); ... ?> Output (expected): 12.345,00 R$ 9876,54 123,45 R$ 12.345,67 R$ I guess rlib must only uses locale defined on rlib_set_locale function. -- Everton Everton Luis Berz escreveu: > All works fine! Thanks > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click