syslogd/sysklogd-1.4.1-utf8.patch

12 lines
349 B
Diff
Raw Normal View History

--- syslogd.c
+++ syslogd.c 2004-09-26 02:41:27.136610056 +0000
@@ -1538,7 +1538,7 @@ void printline(hname, msg)
else if (c < 040) {
*q++ = '^';
*q++ = c ^ 0100;
- } else if (c == 0177 || (c & 0177) < 040) {
+ } else if (c == 0177 || c >= 0376) {
*q++ = '\\';
*q++ = '0' + ((c & 0300) >> 6);
*q++ = '0' + ((c & 0070) >> 3);