https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244226

            Bug ID: 244226
           Summary: [patch] syslogd converts all 8-bit chars to M-x
                    sequences
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: b...@freebsd.org
          Reporter: f...@opal.com

Created attachment 211760
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=211760&action=edit
patch to add locale support to syslogd when converting strings to "safe"
sequences

syslogd has code to convert all logged messages to "safe" strings.

At the moment, the code converts control characters to "^x" sequences and ALL
8-bit characters to "M-x" sequences.  This means that printable characters in
character sets other than ASCII are converted and so do not display as expected
when viewing the logs.

This patch adds LC_CTYPE locale support to syslogd and changes the "safe"
conversion code to examine the logged characters using mbrtoc32() and to use
iswgraph() to test if a character needs converting to safe sequences.

It also uses vis() to do the conversion which is similar to OpenBSD but which
means control chars become \C-x and non-graphical 8-bit chars become \M-x.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to