1 Submitted By: Alexander E. Patrakov
3 Initial Package Version: 1.4.1
4 Origin: Alexander E. Patrakov
5 Upstream status: not submitted yet, probably will not be accepted
6 Description: Weakens rules for determining whether a character is printable.
7 Now only bytes < 0x20 and the 0x7f byte are considered to be unprintable.
8 The original rules were valid for ISO-8859-* and KOI*.
10 Without this fix, logging meaningful Russian messages in UTF-8 is impossible.
12 diff -u sysklogd-1.4.1/syslogd.c sysklogd-1.4.1.fixed/syslogd.c
13 --- sysklogd-1.4.1/syslogd.c 2001-03-12 00:40:10.000000000 +0500
14 +++ sysklogd-1.4.1.fixed/syslogd.c 2004-05-09 09:05:42.972864104 +0600
19 - } else if (c == 0177 || (c & 0177) < 040) {
20 + } else if (c == 0177) {
22 *q++ = '0' + ((c & 0300) >> 6);
23 *q++ = '0' + ((c & 0070) >> 3);