]> xenbits.xensource.com Git - libvirt.git/commit
json: fix interface locale dependency
authorMartin Kletzander <mkletzan@redhat.com>
Sat, 11 Aug 2012 19:13:00 +0000 (21:13 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 14 Aug 2012 05:30:14 +0000 (07:30 +0200)
commit43bfa23e6f968be9a8c134a4b5c3cfb6da3816d9
tree8106d948949a0ee8c08b4e0ca39b7647c58d050c
parent863399f06b8dad8d7fc2e4b962d3cc566b69ed4c
json: fix interface locale dependency

libvirt creates invalid commands if wrong locale is selected. For
example with locale that uses comma as a decimal point, JSON commands
created with decimal numbers are invalid because comma separates the
entries in JSON. Fortunately even when decimal point is affected,
thousands grouping is not, because for grouping to be enabled with
*printf, there has to be an apostrophe flag specified (and supported).

This patch adds specific internal function for converting doubles to
strings with C locale.
bootstrap.conf
configure.ac
src/libvirt_private.syms
src/util/json.c
src/util/util.c
src/util/util.h