]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/sysklogd-1.4.1-8bit-1.patch
Stop dhcpcd before starting if it was running
[people/pmueller/ipfire-2.x.git] / src / patches / sysklogd-1.4.1-8bit-1.patch
1 Submitted By: Alexander E. Patrakov
2 Date: 2004-05-09
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*.
9
10 Without this fix, logging meaningful Russian messages in UTF-8 is impossible.
11
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
15 @@ -1449,7 +1449,7 @@
16 else if (c < 040) {
17 *q++ = '^';
18 *q++ = c ^ 0100;
19 - } else if (c == 0177 || (c & 0177) < 040) {
20 + } else if (c == 0177) {
21 *q++ = '\\';
22 *q++ = '0' + ((c & 0300) >> 6);
23 *q++ = '0' + ((c & 0070) >> 3);