summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html/en/drv/svg.html2
-rw-r--r--mak.vc9/cdsimple.vcproj2
-rw-r--r--src/svg/cdsvg.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/html/en/drv/svg.html b/html/en/drv/svg.html
index c9cfcbd..f05fc2f 100644
--- a/html/en/drv/svg.html
+++ b/html/en/drv/svg.html
@@ -38,7 +38,7 @@
cdKillCanvas</strong></font></a> is required to <b>close</b> the file properly.</p>
<p><strong>IMPORTANT:</strong> because the SVG specification states that
floating point number must use dots &quot;.&quot; for floating point separators, we set
-the numeric locale to &quot;English&quot; when the canvas is created, and restore it when
+the numeric locale to &quot;C&quot; when the canvas is created, and restore it when
it is destroyed. But since it uses the global C function <strong>setlocale</strong>
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.</p>
diff --git a/mak.vc9/cdsimple.vcproj b/mak.vc9/cdsimple.vcproj
index 7115e88..3753bd5 100644
--- a/mak.vc9/cdsimple.vcproj
+++ b/mak.vc9/cdsimple.vcproj
@@ -44,7 +44,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\include,..\..\iup\include"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;__CD__;simple;_CRT_SECURE_NO_DEPRECATE;USE_CONTEXTPLUS;USE_OPENGL;CD_NO_OLD_INTERFACE"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;__CD__;simple;_CRT_SECURE_NO_DEPRECATE;USE_CONTEXTPLUS;CD_NO_OLD_INTERFACE"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
PrecompiledHeaderFile=".\..\obj\cdsimple/cdsimple.pch"
diff --git a/src/svg/cdsvg.c b/src/svg/cdsvg.c
index 46e41bf..b84fb48 100644
--- a/src/svg/cdsvg.c
+++ b/src/svg/cdsvg.c
@@ -1244,7 +1244,7 @@ static void cdcreatecanvas(cdCanvas *canvas, void *data)
/* SVN specification states that number must use dot as decimal separator */
ctxcanvas->old_locale = cdStrDup(setlocale(LC_NUMERIC, NULL));
- setlocale(LC_NUMERIC, "English");
+ setlocale(LC_NUMERIC, "C");
ctxcanvas->file = fopen(filename, "w");
if (!ctxcanvas->file)