diff options
Diffstat (limited to 'src/libnetdata/procfile/procfile.c')
-rw-r--r-- | src/libnetdata/procfile/procfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnetdata/procfile/procfile.c b/src/libnetdata/procfile/procfile.c index d9ebf4c93..2b7eeeb56 100644 --- a/src/libnetdata/procfile/procfile.c +++ b/src/libnetdata/procfile/procfile.c @@ -336,7 +336,7 @@ __attribute__((constructor)) void procfile_initialize_default_separators(void) { if(unlikely(i == '\n' || i == '\r')) procfile_default_separators[i] = PF_CHAR_IS_NEWLINE; - else if(unlikely(isspace(i) || !isprint(i))) + else if(unlikely(isspace(i) || (!isprint(i) && !IS_UTF8_BYTE(i)))) procfile_default_separators[i] = PF_CHAR_IS_SEPARATOR; else |