diff --git a/src/log/syslog.rs b/src/log/syslog.rs index 02ac1fed9..0dc5fb74d 100644 --- a/src/log/syslog.rs +++ b/src/log/syslog.rs @@ -198,4 +198,11 @@ mod tests { logger.log(&record); } + + #[test] + fn will_not_break_utf8() { + let mut writer = SysLogWriter::new(libc::LOG_DEBUG, FACILITY); + + let _ = write!(writer, "{}ยข", "x".repeat(959)); + } }