Skip to content
Snippets Groups Projects
Commit ac2dc81e authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

Merge branch 'fix_windows_read_strings' into 'master'

Windows line ending bug fixed

See merge request !19
parents 83269358 efac9c01
Branches
Tags
1 merge request!19Windows line ending bug fixed
......@@ -286,15 +286,13 @@ int write_data_to_file(const void *buf, uint32_t buf_size, const char *output_pr
static void remove_spaces(char *s)
{
const char *d;
const char *d = s;
if (!s)
return;
d = s;
do {
while (*d == ' ' || *d == '\t')
while (isspace(*d))
d++;
} while ((*s++ = *d++) != '\0');
}
......
......@@ -484,7 +484,7 @@ def test_model_compression():
assert(returncode == EXIT_SUCCESS)
assert(stderr == "")
cfg = parse_key_value(stdout)
cfg['cmp_mode'] = 'MODE_MODEL_MULTI'
cfg['cmp_mode'] = 'MODE_MODEL_MULTI\r'
cfg['model_value'] = '0'
cfg["samples"] = '5'
cfg["buffer_length"] = '2'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment