[Gluster-devel] Locale problem in master

Anders Blomdell anders.blomdell at control.lth.se
Mon Jul 7 16:48:48 UTC 2014


Due to the line (commit 040319d8bced2f25bf25d8f6b937901c3a40e34b):

  ./libglusterfs/src/logging.c:503:        setlocale(LC_ALL, "");

The command 

  env -i LC_NUMERIC=sv_SE.utf8 /usr/sbin/glusterfs ...

will fail due to the fact that the swedish decimal separator is not '.', but ',', 
i.e. _gf_string2double will fail due to strtod ('1.0', &tail) will give the tail 
'.0'.

/Anders

-- 
Anders Blomdell                  Email: anders.blomdell at control.lth.se
Department of Automatic Control
Lund University                  Phone:    +46 46 222 4625
P.O. Box 118                     Fax:      +46 46 138118
SE-221 00 Lund, Sweden



More information about the Gluster-devel mailing list