From: "drbrain (Eric Hodel)" Date: 2012-04-03T08:05:28+09:00 Subject: [ruby-core:44092] [ruby-trunk - Bug #6248][Third Party's Issue] Truncation of log when null character included in stream Issue #6248 has been updated by drbrain (Eric Hodel). Category set to ext Status changed from Open to Third Party's Issue Priority changed from Low to Normal =begin Seems to be an issue of syslog(), not ruby: $ cat t.c #include #include int main() { openlog("test", LOG_PID, LOG_USER); syslog(LOG_DEBUG, "%s", "hello\0world"); return 0; } $ gcc t.c && ./a.out $ sudo grep test /var/log/all.log Apr 2 16:03:38 ziz test[15322]: hello =end ---------------------------------------- Bug #6248: Truncation of log when null character included in stream https://bugs.ruby-lang.org/issues/6248#change-25621 Author: rubysubmit (Ruby Submit) Status: Third Party's Issue Priority: Normal Assignee: Category: ext Target version: ruby -v: ruby 1.9.2p290 require 'syslog' Syslog.open("n") Syslog.info("everything is normal and fine\0 additional message") This results in the following log message. example n[9270]: everything is normal and fine -- http://bugs.ruby-lang.org/