Warn on bad UTF-8 in the configuration file.

This commit is contained in:
Jan Vidar Krey 2009-05-16 12:48:17 +02:00
parent 5ea5efb875
commit caec28f63f

View File

@ -464,6 +464,11 @@ static int config_parse_line(char* line, int line_count, void* ptr_data)
hub_log(log_trace, "config_parse_line(): '%s'", line);
#endif
if (!is_valid_utf8(line))
{
hub_log(log_warning, "Invalid utf-8 characters on line %d", line_count);
}
if ((pos = strchr(line, '=')) != NULL)
{
pos[0] = 0;