LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sysklogd-1.4.1-utf8.patch of Package syslogd.363 (Project openSUSE:12.1:Update)

--- 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);