X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_create.c;h=c8996ce82f81f61177774fd918523ef2c903f4f7;hp=2a0a143c9281c2e5e7edfa08a8be2a5acb8f0132;hb=1f472620354603bd3bf2fdee30e2dd70dea7a4f1;hpb=28a2150521548582386dcadda9e25f8124cb0e9a diff --git a/src/rrd_create.c b/src/rrd_create.c index 2a0a143..c8996ce 100644 --- a/src/rrd_create.c +++ b/src/rrd_create.c @@ -571,7 +571,8 @@ void parseGENERIC_DS( &(rrd -> ds_def[ds_idx].par[DS_mrhb_cnt].u_cnt), minstr,maxstr); */ - old_locale = setlocale(LC_NUMERIC, "C"); + old_locale = setlocale(LC_NUMERIC, NULL); + setlocale(LC_NUMERIC, "C"); if (sscanf(def, "%lu:%18[^:]:%18[^:]", &(rrd->ds_def[ds_idx].par[DS_mrhb_cnt].u_cnt), minstr, maxstr) == 3) {