This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: vfork always fail problem


On May 14 16:54, Huang Bambo wrote:
> I's the problem of the fork() pass a wrong program path to CreateProcessW.
> 
> It shoud pass a GBK code pathname to CreateProcessW but if I set
>  LANG=en_US.UTF-8, the pathname passed to CreateProcessW is UTF-8, so
> CreateProcessW report file not found.

That sounds a bit weird.  The joke of using the ...W functions is that
the string parameters are always given in UTF-16.  GBK is a multibyte
charset and can only be used in conjunction with the ...A functions.
However, I'm on vacation so I can't test this scenario right now.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]