hello

(sorry, the previous mail has wrong topic)

I have this simple code :
---------------------------------
#include <stdio.h>

#include <windows.h>

int main(int argc, char* argv[])
{
    FILE* f;
    if (argc < 2)
    {
        printf("%s\n", argv[0]);
        return 1;
    }

    f = fopen(argv[1], "rb");
    if (!f)
        printf("bad\n");
    else
        printf("good\n");
    return 0;
}
---------------------------------

of course, both compile with VS and on MSYS2+mingw-w64

The problem is runtime. I don't know if it is important or not, but I
am running Windows 10, french edition.

So, I have a file which has a romanian symbol : Moș.txt

1) if I run in MSYS2 ./myprog_gcc (compiled with gcc) Moș.txt, "bad"
is displayed

2) if I run in MSYS2 ./myprog_vs (compiled with VSc) Moș.txt, "good"
is displayed

does someone have an idea why there is such difference ?

thank you

Vincent Torri


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to