diff options
author | scuri <scuri> | 2010-10-19 15:31:16 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-10-19 15:31:16 +0000 |
commit | d965dd8953d37a41ab8958a3ff05d0d9aa14c09f (patch) | |
tree | 7cdb340fbddafd388fd785c7b4181164375586c8 | |
parent | 1129345787a6317b5eafeabe92fe52050187682e (diff) |
*** empty log message ***
-rw-r--r-- | html/en/drv/svg.html | 2 | ||||
-rw-r--r-- | mak.vc9/cdsimple.vcproj | 2 | ||||
-rw-r--r-- | src/svg/cdsvg.c | 2 |
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 "." for floating point separators, we set -the numeric locale to "English" when the canvas is created, and restore it when +the numeric locale to "C" 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) |