From 26ee3a10b806df99915805516567f6ad38956ac4 Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 14 Oct 2010 18:07:59 +0000 Subject: Fixed: locale in SVG for floating point numbers, it must use dots "." for decimal separators. --- html/en/drv/svg.html | 6 ++++++ html/en/history.html | 3 +++ 2 files changed, 9 insertions(+) (limited to 'html/en') diff --git a/html/en/drv/svg.html b/html/en/drv/svg.html index 7f242d5..c9cfcbd 100644 --- a/html/en/drv/svg.html +++ b/html/en/drv/svg.html @@ -36,6 +36,12 @@

Any amount of such canvases may exist simultaneously. It is important to note that a call to function cdKillCanvas is required to close the file properly.

+

IMPORTANT: because the SVG specification states that +floating point number must use dots "." for floating point separators, we set +the numeric locale to "English" when the canvas is created, and restore it when +it is destroyed. But since it uses the global C function setlocale +if you use other C functions that are locale dependent while the SVG canvas is +being used then be aware that they will be affected.

Behavior of Functions

Control

diff --git a/html/en/history.html b/html/en/history.html index 87d714e..06eb512 100644 --- a/html/en/history.html +++ b/html/en/history.html @@ -59,6 +59,9 @@ Fixed: polygon filling in CD_IMAGERGB driver when there are many horizontal lines in sequence on the same polygon. +
  • + Fixed: locale in SVG for floating point + numbers, it must use dots "." for decimal separators.
  • Version 5.4 (24/June/2010)