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: fopen with UTF-8 chars in filenames


Paul J. Lucas wrote:
> Is this known to work (or not work)?  Apparently, it doesn't.
>
> FYI: I'm writing JNI code.  The strings passed from Java to C
> are UTF-8.  A string containing a non-ASCII character, e.g., an
> 'e' with an accent, works fine with fopen() under Mac OS X.  The
> same JNI code under Cygwin fails.


I'm not positive about this, but you may have to convert the UTF-8 to UTF-16 
(Windows unicode) and call wfopen() instead of fopen().  But wfopen() is a 
Windows call, not a cygwin call :-(


Cary




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


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