Re: [Openvpn-devel] [PATCH] ignore UTF-8 byte order mark

2013-02-03 Thread Heiko Hund
On Saturday 02 February 2013 17:47:40 David Sommerseth wrote: > Wouldn't this approach solve it in an easier way? > >int offset = 0; >if (line_num == 1 && strncmp (line, "\xEF\xBB\xBF", 3) == 0) > offset = 3 > >if (parse_line (line+offset, p, SIZE (p), file,

Re: [Openvpn-devel] [PATCH] ignore UTF-8 byte order mark

2013-02-02 Thread David Sommerseth
On 22/01/13 12:36, Heiko Hund wrote: > Currently openvpn exits when reading configuration from a file > that has an UTF-8 byte order mark (EF BB BF) at its start. > > While it is useless to put a BOM into UTF-8 encoded files, the > Unicode standard [1] permits it (on page 36): > > "Use of a

[Openvpn-devel] [PATCH] ignore UTF-8 byte order mark

2013-01-22 Thread Heiko Hund
Currently openvpn exits when reading configuration from a file that has an UTF-8 byte order mark (EF BB BF) at its start. While it is useless to put a BOM into UTF-8 encoded files, the Unicode standard [1] permits it (on page 36): "Use of a BOM is neither required nor recommended for UTF-8,