From: Zoltan B. <zb...@du...> - 2005-05-14 20:33:52
|
Zoltan Boszormenyi =EDrta: > Zoltan Boszormenyi =EDrta: >=20 >> [val() (and other functions?)] doesn't conform to the locale settings,= =20 >> it prints >> decimal dots. I am investigating it. I found that my original modification was correct. My "extra" setlocale() call is needed. If you give a new locale to setlocale(), then on error it returns NULL, on success it returns the newly set locale. setlocale(LC_ALL, NULL) is needed to return the original locale. But I saved some setlocale() calls anyway. I didn't recognize at first that rpdf_make_page_stream() is called by rpdf_finalize(), so it's enough to modify the locale in rpdf_finalize(). But it didn't fix the sum, its still displayed with decimal dot instead of a comma. All the other numbers above it contains comma. They come directly from the SQL query. In RLIB's datasources, the values are actually strings, aren't they? The actual values aren't converted to numbers and back to strings, I suppose. Only the report variables are treated differently. Besides that, my original proposal still stands. Best regards, Zolt=E1n B=F6sz=F6rm=E9nyi |