Function strstr and MinGW

Eryk Wieliczko ewdevel at gmail.com
Fri Nov 5 14:59:44 CDT 2010


brutalcomputer at b:/tmp$ i586-mingw32msvc-gcc test.c
brutalcomputer at b:/tmp$ wine a.exe
17_'A simple test  . '
brutalcomputer at b:/tmp$ gcc test.c
brutalcomputer at b:/tmp$ ./a.out
47_'A at space@simple at space@test at space@@space at .@space@'
brutalcomputer at b:/tmp$

I don't understand either... Ubuntu 10.04.

i586-mingw32msvc-gcc (GCC) 4.4.2
gcc (Ubuntu 4.3.4-10ubuntu1) 4.3.4

Can this be a bug in gcc 4.3?


Btw. In Visual 2008 it works correctly.

Eric

2010/11/5 GOUJON Alexandre <ale.goujon at gmail.com>:
> Hi everyone,
>
> I'm still trying to improve wine cmd but I'm stuck with my patch making
> tests failing.
>
> After some investigations, I've found that my function which replace all
> @space@ by real spaces does not always work.
> So I've written a test_case (attached code).
> It runs perfectly on Ubuntu (compiled with gcc) but does nothing on Windows
> (compiled with i586-mingw32msvc-gcc).
> In fact, on windows, strstr fails and so never goes into the while{ } loop.
>
> Is MinGW the culprit ?
> Should I use another function ?
> Any idea ?
>
> [Why *standard* function don't even work on Windows ?]
>
> Thanks in advance !
>
>
>
>



More information about the wine-devel mailing list