From: Everton L. B. <ev...@fa...> - 2005-08-02 19:55:27
|
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 > |