Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 10 May 2015 21:47:01 -0400
From: Mike Frysinger <vapier@...too.org>
To: 罗勇刚(Yonggang Luo) <luoyonggang@...il.com>
Cc: Rich Felker <dalias@...c.org>, John Sully <john@...uare.ca>,
	Karsten Blees <blees@...n.de>, musl@...ts.openwall.com,
	dplakosh@...t.org, austin-group-l@...ngroup.org,
	hsutter@...rosoft.com, Clang Dev <cfe-dev@...uiuc.edu>,
	James McNellis <james@...esmcnellis.com>
Subject: Re: Re: [cfe-dev] 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?

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:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html

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.
-mike

Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.