[cfe-dev] [musl] Re: Is that getting wchar_t to be 32bit on win32 a good idea for compatible with Unix world by implement posix layer on win32 API?

Mike Frysinger vapier at gentoo.org
Sun May 10 18:47:01 PDT 2015

On 10 May 2015 20:31, 罗勇刚(Yonggang Luo)  wrote:
> For example, the open function exist both in msvcrt and posix,
> int open(const char *path, int oflag, ...);
> But in msvcrt, the path is ANSI encoding, and in posix, path is utf8 encoding,

POSIX has no such encoding requirement on the |path| argument:

on Linux, that buffer is a standard NUL-terminated C string which is passed 
directly to the kernel which more or less passes it directly to the fs driver.  
how some FS drivers interpret that string depends on the FS.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150510/7e84c881/attachment.sig>

More information about the cfe-dev mailing list