Hi,

My console application (dos2unix) has globbing enabled:


int main (int argc, char *argv[])
{
# ifdef __MINGW64__
   int _dowildcard = -1; /* enable wildcard expansion for Win64 */
# endif


This works fine for ANSI names. But, in order to open files with unicode 
names, I'm converting the arguments to wide arguments.


   wchar_t **wargv;
   wargv = CommandLineToArgvW(GetCommandLineW(), &argc);


The wide arguments wargv are not globbed. When I try to open files, I 
get this kind of errors:


c:\tmp>dos2unix *.txt
  *.txt: No such file or directory


Is there a way to get a globbed file list of wide arguments in a console 
application?


best regards,

-- 
Erwin Waterlander
http://waterlan.home.xs4all.nl/

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to