在 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 translations, but I am not clear whether it has 
anything to do with the encoding. I suspect it has,
because Linux programs generally expects UTF-8, so there must be kind of 
conversion from UTF-8 to ACP for arguments passed
to native programs.


-- 
Best regards,
LH_Mouse

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to