summaryrefslogtreecommitdiff
path: root/wand/drawtest.c
diff options
context:
space:
mode:
authorJiyong <jiyong.min@samsung.com>2023-12-06 10:30:38 +0900
committerJiyong <jiyong.min@samsung.com>2023-12-06 10:31:10 +0900
commit2c17c6b7ecf6d96c9b4004cd7b79d860b66e6ae3 (patch)
treec2510f971c95cb79f5a4bd55c841d294bf5197fd /wand/drawtest.c
parent043c171f3b5935329641967057ae5f45bc1a5631 (diff)
downloadGraphicsMagick-2c17c6b7ecf6d96c9b4004cd7b79d860b66e6ae3.tar.gz
GraphicsMagick-2c17c6b7ecf6d96c9b4004cd7b79d860b66e6ae3.tar.bz2
GraphicsMagick-2c17c6b7ecf6d96c9b4004cd7b79d860b66e6ae3.zip
Imported Upstream version 1.3.42upstream/1.3.42upstream
Change-Id: I4f2a12cbf50e1a459e7bac7c5a8e374071620eea
Diffstat (limited to 'wand/drawtest.c')
-rw-r--r--wand/drawtest.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/wand/drawtest.c b/wand/drawtest.c
index ed14c4c..a81e5fa 100644
--- a/wand/drawtest.c
+++ b/wand/drawtest.c
@@ -12,6 +12,7 @@
#include <sys/types.h>
#include <time.h>
#include <wand/magick_wand.h>
+#include <locale.h>
static MagickPassFail
ScribbleImage (MagickWand *canvas)
@@ -404,6 +405,17 @@ int main ( int argc, char **argv )
outfile[MaxTextExtent-1]='\0';
(void) strncpy( outfile, argv[1], MaxTextExtent-1 );
+ /*
+ Initialize locale from environment variables (LANG, LC_CTYPE,
+ LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES,
+ LC_ALL), but require that LC_NUMERIC use common conventions. The
+ LC_NUMERIC variable affects the decimal point character and
+ thousands separator character for the formatted input/output
+ functions and string conversion functions.
+ */
+ (void) setlocale(LC_ALL,"");
+ (void) setlocale(LC_NUMERIC,"C");
+
InitializeMagick(*argv);
/*