1
answer

Hi,

Below patch enables NXLog to correctly skip UTF-8 BOMs in RFC5424 syslog messages.

Should I also log a support ticket for this?

Ron

--- syslog.c.orig 2014-07-19 23:52:06.000000000 +1000
+++ syslog.c 2015-09-22 11:24:39.834615100 +1000
@@ -1091,7 +1091,7 @@
if ( *ptr == ' ' ) ptr++; // skip space

// MESSAGE
- if ( (ptr[0] == 0xEF) && (ptr[0] == 0xBB) && (ptr[0] == 0xBF) )
+ if ( (ptr[0] == 0xEF) && (ptr[1] == 0xBB) && (ptr[2] == 0xBF) )
{ //Skip UTF8 BOM
ptr += 3;
}

AskedSeptember 22, 2015 - 3:46am

Answer (1)