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 ++++++ 1 file changed, 6 insertions(+) (limited to 'html/en/drv') 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

-- cgit v1.2.3