Skip to content
Permalink
Browse files

force locale

  • Loading branch information...
davidgohel committed Apr 6, 2019
1 parent 69413aa commit ac43f3b849a1f730b02e77671b354712b12415d0
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/dsvg.cpp
@@ -10,6 +10,7 @@
#include "fonts.h"
#include "R_ext/GraphicsEngine.h"
#include "a_color.h"
#include <locale>


std::string line_style(double width, int col, int type, int join, int end)
@@ -358,6 +359,7 @@ static void dsvg_rect(double x0, double y0, double x1, double y1,
static void dsvg_circle(double x, double y, double r, const pGEcontext gc,
pDevDesc dd) {
DSVG_dev *svgd = (DSVG_dev*) dd->deviceSpecific;

int idx = svgd->new_id();
svgd->register_element();

@@ -594,6 +596,8 @@ bool DSVG_(std::string file, double width, double height, std::string bg,
R_GE_checkVersionOrDie(R_GE_version);
R_CheckDeviceAvailable();
BEGIN_SUSPEND_INTERRUPTS {
setlocale(LC_NUMERIC, "C");

pDevDesc dev = dsvg_driver_new(file, bg_, width, height, pointsize, standalone, canvas_id, clip_id_root,
aliases);
if (dev == NULL)

0 comments on commit ac43f3b

Please sign in to comment.
You can’t perform that action at this time.