From 7ac193e4d7f9fbbb5dc6f36c071f74576d3082b0 Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 17 May 2011 02:16:12 +0000 Subject: [PATCH] --- coders/svg.c | 5 ----- magick/annotate.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/coders/svg.c b/coders/svg.c index f6b08807e..05be3deb3 100644 --- a/coders/svg.c +++ b/coders/svg.c @@ -2980,19 +2980,14 @@ static Image *ReadSVGImage(const ImageInfo *image_info,ExceptionInfo *exception) n=ReadBlob(image,MaxTextExtent,message); if (n > 0) { - const char - *locale; - svg_info->parser=xmlCreatePushParserCtxt(sax_handler,svg_info,(char *) message,n,image->filename); - locale=setlocale(LC_NUMERIC,"C"); while ((n=ReadBlob(image,MaxTextExtent,message)) != 0) { status=xmlParseChunk(svg_info->parser,(char *) message,(int) n,0); if (status != 0) break; } - (void) setlocale(LC_NUMERIC,locale); } (void) xmlParseChunk(svg_info->parser,(char *) message,0,1); xmlFreeParserCtxt(svg_info->parser); diff --git a/magick/annotate.c b/magick/annotate.c index 6c0f6e2f0..6ea8fb14d 100644 --- a/magick/annotate.c +++ b/magick/annotate.c @@ -1308,18 +1308,13 @@ static MagickBooleanType RenderFreetype(Image *image,const DrawInfo *draw_info, if ((draw_info->stroke.opacity != TransparentOpacity) || (draw_info->stroke_pattern != (Image *) NULL)) { - const char - *locale; - /* Trace the glyph. */ annotate_info->affine.tx=glyph.origin.x/64.0; annotate_info->affine.ty=glyph.origin.y/64.0; - locale=setlocale(LC_NUMERIC,"C"); (void) FT_Outline_Decompose(&((FT_OutlineGlyph) glyph.image)-> outline,&OutlineMethods,annotate_info); - (void) setlocale(LC_NUMERIC,locale); } FT_Vector_Transform(&glyph.origin,&affine); (void) FT_Glyph_Transform(glyph.image,&affine,&glyph.origin); -- 2.40.0