Re: [Mingw-w64-public] Short read mystery

2013-10-15 Thread マーズ
Greetings Edscott Wilson, In Unix, "\r\n" for a newline, versus '\n' in Windows? Maybe a unix2dos the file would put everything in perspective? Edscott Wilson wrote: > I've been banging my head against the monitor for the past nine hours and > narrowed a problem down to the following. > I've f

Re: [Mingw-w64-public] Short read mystery

2013-10-15 Thread niXman
Edscott Wilson писал 2013-10-16 03:07: > I've been banging my head against the monitor for the past nine hours and > narrowed a problem down to the following. > I've found that for certain data, the read() function will return a short > byte count. > > Take the following test file: http://

Re: [Mingw-w64-public] Short read mystery

2013-10-15 Thread Ozkan Sezer
On 10/16/13, Edscott Wilson wrote: > I've been banging my head against the monitor for the past nine hours and > narrowed a problem down to the following. > I've found that for certain data, the read() function will return a short > byte count. > > Take the following test file: http://xffm.org/te

[Mingw-w64-public] Short read mystery

2013-10-15 Thread Edscott Wilson
I've been banging my head against the monitor for the past nine hours and narrowed a problem down to the following. I've found that for certain data, the read() function will return a short byte count. Take the following test file: http://xffm.org/test.dbh and compile and execute the following pr

[Mingw-w64-public] [PATCH] Re: stpcpy mystery

2013-10-15 Thread LRN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15.10.2013 16:34, LRN wrote: > Testcase is attached. Some invocations of stpcpy work, some don't. > expand_builtin_stpcpy() from gcc/builtins.c sheds some light on this (when return value is ignored, stpcpy() is replaced with strcpy()). After readi

Re: [Mingw-w64-public] to test for MinGW64

2013-10-15 Thread Ruben Van Boxem
2013/10/15 Jon > > > > On Tue, Oct 15, 2013 at 7:23 AM, Ruben Van Boxem > wrote: > >> 2013/10/15 LRN >> >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> >>> On 15.10.2013 14:06, Incongruous wrote: >>> > I would like to test for MinGW64 to include or exclude some code; >>> something lik

Re: [Mingw-w64-public] to test for MinGW64

2013-10-15 Thread Jon
On Tue, Oct 15, 2013 at 7:23 AM, Ruben Van Boxem wrote: > 2013/10/15 LRN > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 15.10.2013 14:06, Incongruous wrote: >> > I would like to test for MinGW64 to include or exclude some code; >> something like: >> > #ifdef MinGW64 >> > doThis();

Re: [Mingw-w64-public] stpcpy mystery

2013-10-15 Thread Kai Tietz
Well, I don't believe in Voodoo here. My bets would go for builtin function vs. C-library function. Is there actually such a function in msvcrt? Am 15.10.2013 14:35 schrieb "LRN" : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Testcase is attached. Some invocations of stpcpy work, some d

Re: [Mingw-w64-public] stpcpy mystery

2013-10-15 Thread Ruben Van Boxem
2013/10/15 LRN > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Testcase is attached. Some invocations of stpcpy work, some don't. > I assume you meant something including string.h, like this: http://coliru.stacked-crooked.com/a/1b967a7cb671a204 This also shows the supposed output you want

[Mingw-w64-public] stpcpy mystery

2013-10-15 Thread LRN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Testcase is attached. Some invocations of stpcpy work, some don't. - -- O< ascii ribbon - stop html email! - www.asciiribbon.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (MingW32) iQEcBAEBAgAGBQJSXTZoAAoJEOs4Jb6SI2CwN9kIAMWBwG/OIv/v3lSpK

Re: [Mingw-w64-public] to test for MinGW64

2013-10-15 Thread Ruben Van Boxem
2013/10/15 LRN > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 15.10.2013 14:06, Incongruous wrote: > > I would like to test for MinGW64 to include or exclude some code; > something like: > > #ifdef MinGW64 > > doThis(); > > #endif > > #ifdef __MSV__ > > doSomthingElse > > #endif > > > >

Re: [Mingw-w64-public] to test for MinGW64

2013-10-15 Thread LRN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15.10.2013 14:06, Incongruous wrote: > I would like to test for MinGW64 to include or exclude some code; something > like: > #ifdef MinGW64 > doThis(); > #endif > #ifdef __MSV__ > doSomthingElse > #endif > > is this possible? > #ifdef __MINGW64_V

[Mingw-w64-public] to test for MinGW64

2013-10-15 Thread Incongruous
I would like to test for MinGW64 to include or exclude some code; something like: #ifdef MinGW64 doThis(); #endif #ifdef __MSV__ doSomthingElse #endif is this possible? tia -- October Webinars: Code for Performance Free

Re: [Mingw-w64-public] Constant 'eConnTypeRJ11Modem' error

2013-10-15 Thread JonY
On 10/15/2013 10:30, niXman wrote: > > > Hi, > > Report: > https://sourceforge.net/p/mingw-w64/bugs/349/ > > Patch in attachment. > Ok to apply? > Please contact Jacek, since there is a corresponding devicetopology.idl. signature.asc Description: OpenPGP digital signature ---