Re: [Openvpn-devel] [PATCH] Open log files as text files on Windows

2010-12-13 Thread David Sommerseth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/12/10 21:23, Karl O. Pinc wrote: | On 12/13/2010 10:56:28 AM, David Sommerseth wrote: |> On 13/12/10 17:29, Karl O. Pinc wrote: |>> On 12/13/2010 05:56:16 AM, David Sommerseth wrote: |>>> By giving the "t" flag to _fdopen() on Windows, the file

Re: [Openvpn-devel] [PATCH] Open log files as text files on Windows

2010-12-13 Thread Karl O. Pinc
On 12/13/2010 10:56:28 AM, David Sommerseth wrote: > On 13/12/10 17:29, Karl O. Pinc wrote: > > On 12/13/2010 05:56:16 AM, David Sommerseth wrote: > >> By giving the "t" flag to _fdopen() on Windows, the file will be > >> opened in a "translate mode", where it will take care of > converting > >> \

Re: [Openvpn-devel] [PATCH] Open log files as text files on Windows

2010-12-13 Thread David Sommerseth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/12/10 17:29, Karl O. Pinc wrote: > On 12/13/2010 05:56:16 AM, David Sommerseth wrote: >> By giving the "t" flag to _fdopen() on Windows, the file will be >> opened in a "translate mode", where it will take care of converting >> \n to \r\n, and al

Re: [Openvpn-devel] [PATCH] Open log files as text files on Windows

2010-12-13 Thread Karl O. Pinc
On 12/13/2010 05:56:16 AM, David Sommerseth wrote: > By giving the "t" flag to _fdopen() on Windows, the file will be > opened in a "translate mode", where it will take care of converting > \n to \r\n, and also look for the CTRL-Z mark when opening the log > file in append mode. It should be possi

[Openvpn-devel] [PATCH] Open log files as text files on Windows

2010-12-13 Thread David Sommerseth
By giving the "t" flag to _fdopen() on Windows, the file will be opened in a "translate mode", where it will take care of converting \n to \r\n, and also look for the CTRL-Z mark when opening the log file in append mode. Reference: