Re: [Mingw-w64-public] Text/binary mode bug in fdopen()??

2014-01-09 Thread Kai Tietz
2014/1/9 lh_mouse : > I know that. > But in nano's source code it isn't the case. That should be fixed then. Either you open it in text-mode, or in binary mode. > Nano's author did use "wb" in fdopen() but dropped the O_BINARY flag in > open(). As a result, when you use win mingw nano (you can ge

Re: [Mingw-w64-public] Text/binary mode bug in fdopen()??

2014-01-09 Thread lh_mouse
I know that. But in nano's source code it isn't the case. Nano's author did use "wb" in fdopen() but dropped the O_BINARY flag in open(). As a result, when you use win mingw nano (you can get it from here http://code.google.com/p/mingw-and-ndk/downloads/detail?name=win-mingw-nano.7z) and explic

Re: [Mingw-w64-public] Text/binary mode bug in fdopen()??

2014-01-09 Thread Hannes Domani
> In short words, on mingw-gcc 4.9.0 the following code produces a text file with contents "a\r\nb\r\n", while > replacing open() + fdopen() with a single fopen() produces "a\nb\n". Any > ideas? You have to add O_BINARY to open(). Regards Domani Hannes --

Re: [Mingw-w64-public] pacman - failed retrieving file 'mingw32.db' ... error setting certificate verify locations:

2014-01-09 Thread ResQue
i am not sure what i did, but the error is now fixed thanks for the help Alexey ResQue On 05/01/2014 13:21, Alexpux wrote: 05 ???. 2014 ?., ? 13:35, ResQue > ???(?): does anyone happen to know what this error means? I could really do with some help underst

[Mingw-w64-public] Text/binary mode bug in fdopen()??

2014-01-09 Thread lh_mouse
In short words, on mingw-gcc 4.9.0 the following code produces a text file with contents "a\r\nb\r\n", while replacing open() + fdopen() with a single fopen() produces "a\nb\n". Any ideas? #include #include int main () { int fd; FILE *pf; fd = open("alphabet.txt", O_WRONLY | O_CREAT |

Re: [Mingw-w64-public] mingw-w64 v3.1.0 out!

2014-01-09 Thread Ozkan Sezer
On 1/9/14, JonY wrote: > Hi all, > > This is a minor bug fix release based on the v3 stable branch. > > The notable changes include some fixes for winpthreads deadlocking and a > workaround for C/C++ linkage clash in crt/intrin.h. > Some pointers for v3.next: - r6424 and possibly r6425 need merg

Re: [Mingw-w64-public] mingw-w64 v3.1.0 out!

2014-01-09 Thread Alon Bar-Lev
Hi, You should update[1] Alon [1] http://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/ On Thu, Jan 9, 2014 at 11:37 AM, JonY wrote: > Hi all, > > This is a minor bug fix release based on the v3 stable branch. > > The notable changes include some fixes for winpthreads

[Mingw-w64-public] mingw-w64 v3.1.0 out!

2014-01-09 Thread JonY
Hi all, This is a minor bug fix release based on the v3 stable branch. The notable changes include some fixes for winpthreads deadlocking and a workaround for C/C++ linkage clash in crt/intrin.h. signature.asc Description: OpenPGP digital signature -