Include 'percent' in tree JSON, use C-locale when dumping, update testcase
This commit is contained in:
@ -368,10 +368,13 @@ static char **append_argument(char **original, char *argument) {
|
||||
#define ystr(str) yajl_gen_string(gen, (unsigned char*)str, strlen(str))
|
||||
|
||||
void store_restart_layout() {
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
yajl_gen gen = yajl_gen_alloc(NULL, NULL);
|
||||
|
||||
dump_node(gen, croot, true);
|
||||
|
||||
setlocale(LC_NUMERIC, "");
|
||||
|
||||
const unsigned char *payload;
|
||||
unsigned int length;
|
||||
y(get_buf, &payload, &length);
|
||||
|
Reference in New Issue
Block a user