在 2020/8/27 下午1:18, Vincent Torri 写道:
>>
>> In 'mingw-w64-crt/crt/crtexe.c' , `argv` is initialized by the function
>> `__getmainargs()` which is imported from MSVCRT. VC
>> uses new versions of runtime libraries so it'd be MSVCR100, MSVCR120, etc.
>> There might be some differences in the
>> afo
On Thu, Aug 27, 2020 at 8:51 AM Vincent Torri wrote:
>
> On Thu, Aug 27, 2020 at 8:45 AM Ruben Van Boxem
> wrote:
> >
> > Op do 27 aug. 2020 om 07:18 schreef Vincent Torri :
> >
> > > On Thu, Aug 27, 2020 at 3:24 AM Liu Hao wrote:
> > > >
> > > > 在 2020/8/27 上午2:06, Vincent Torri 写道:
> > > > >
>
On Thu, Aug 27, 2020 at 8:45 AM Ruben Van Boxem
wrote:
>
> Op do 27 aug. 2020 om 07:18 schreef Vincent Torri :
>
> > On Thu, Aug 27, 2020 at 3:24 AM Liu Hao wrote:
> > >
> > > 在 2020/8/27 上午2:06, Vincent Torri 写道:
> > > >
> > > > i've checked in cmd too, same result
> > > >
> > > > But there is a
Op do 27 aug. 2020 om 07:18 schreef Vincent Torri :
> On Thu, Aug 27, 2020 at 3:24 AM Liu Hao wrote:
> >
> > 在 2020/8/27 上午2:06, Vincent Torri 写道:
> > >
> > > i've checked in cmd too, same result
> > >
> > > But there is anyway something strange to me :
> > >
> > > myprog_gcc.exe and myprog_vs ar
On Thu, Aug 27, 2020 at 3:24 AM Liu Hao wrote:
>
> 在 2020/8/27 上午2:06, Vincent Torri 写道:
> >
> > i've checked in cmd too, same result
> >
> > But there is anyway something strange to me :
> >
> > myprog_gcc.exe and myprog_vs are *both* run in MSYS2, and the result
> > is different. So I don't thin
On Thu, Aug 27, 2020 at 2:19 AM sisyphus wrote:
>
> On Wed, Aug 26, 2020 at 7:01 PM Vincent Torri
> wrote:
>
> > -
> > #include
> >
> > #include
> >
> > int main(int argc, char* argv[])
> > {
> > FILE* f;
> > if (argc < 2)
> > {
> > printf("%s
在 2020/8/27 上午2:06, Vincent Torri 写道:
>
> i've checked in cmd too, same result
>
> But there is anyway something strange to me :
>
> myprog_gcc.exe and myprog_vs are *both* run in MSYS2, and the result
> is different. So I don't think it's related to path translation. It
> would suggest somethin
On Wed, Aug 26, 2020 at 7:01 PM Vincent Torri
wrote:
> -
> #include
>
> #include
>
> int main(int argc, char* argv[])
> {
> FILE* f;
> if (argc < 2)
> {
> printf("%s\n", argv[0]);
> return 1;
> }
>
> f = fopen(argv[1], "rb");
>
On Wed, Aug 26, 2020 at 4:38 PM Liu Hao wrote:
>
> 在 2020/8/26 18:05, Vincent Torri 写道:
> >
> > the file is : Moș_Crăciun_cântece.txt
> > I print it in the prog with printf :
> >
> > $ ./fopen.exe Moș_Crăciun_cântece.txt
> > bad
> > Mo?_Craciun_cÔntece.txt
> >
>
> Would you please check whether th
在 2020/8/26 18:05, Vincent Torri 写道:
>
> the file is : Moș_Crăciun_cântece.txt
> I print it in the prog with printf :
>
> $ ./fopen.exe Moș_Crăciun_cântece.txt
> bad
> Mo?_Craciun_cÔntece.txt
>
Would you please check whether the program behaves as expected in CMD?
MSYS2 performs some path tran
On Wed, Aug 26, 2020 at 11:29 AM Liu Hao wrote:
>
> 在 2020/8/26 下午5:00, Vincent Torri 写道:
> >
> > 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
在 2020/8/26 下午5:00, Vincent Torri 写道:
>
> 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
hello
(sorry, the previous mail has wrong topic)
I have this simple code :
-
#include
#include
int main(int argc, char* argv[])
{
FILE* f;
if (argc < 2)
{
printf("%s\n", argv[0]);
return 1;
}
f = fopen(argv[1], "rb");
if
13 matches
Mail list logo