From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7623 Path: news.gmane.org!not-for-mail From: Mike Frysinger Newsgroups: gmane.comp.standards.posix.austin.general,gmane.linux.lib.musl.general,gmane.comp.compilers.clang.devel Subject: Re: [musl] 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? Date: Sun, 10 May 2015 21:47:01 -0400 Message-ID: <20150511014701.GN30924@vapier> References: <20150509103645.GG29035@port70.net> <20150509200535.GK17573@brightrain.aerifal.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CeC2K4acttR/mmFn" X-Trace: ger.gmane.org 1431308864 14974 80.91.229.3 (11 May 2015 01:47:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2015 01:47:44 +0000 (UTC) Cc: Rich Felker , John Sully , Karsten Blees , musl-ZwoEplunGu1jrUoiu81ncdBPR1lH4CV8@public.gmane.org, dplakosh-etTNj8cnB6w@public.gmane.org, austin-group-l-7882/jkIBncuagvECLh61g@public.gmane.org, hsutter-0li6OtcxBFHby3iVrkZq2A@public.gmane.org, Clang Dev , James McNellis To: =?utf-8?B?572X5YuH5YiaKFlvbmdnYW5nIEx1byk=?= Original-X-From: austin-group-l-request-7882/jkIBncuagvECLh61g@public.gmane.org Mon May 11 03:47:39 2015 Return-path: Envelope-to: gcsa-austin-group-l-wOFGN7rlS/M9smdsby/KFg@public.gmane.org Original-Received: from m4.opengroup.org ([64.79.149.154]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yrcok-00006K-7E for gcsa-austin-group-l-wOFGN7rlS/M9smdsby/KFg@public.gmane.org; Mon, 11 May 2015 03:47:38 +0200 Original-Received: (qmail 12547 invoked by uid 503); 11 May 2015 01:47:30 -0000 Resent-Date: 11 May 2015 01:47:30 -0000 Mail-Followup-To: =?utf-8?B?572X5YuH5YiaKFlvbmdnYW5nIEx1byk=?= , Rich Felker , John Sully , Karsten Blees , musl-ZwoEplunGu1jrUoiu81ncdBPR1lH4CV8@public.gmane.org, dplakosh-etTNj8cnB6w@public.gmane.org, austin-group-l-7882/jkIBncuagvECLh61g@public.gmane.org, hsutter-0li6OtcxBFHby3iVrkZq2A@public.gmane.org, Clang Dev , James McNellis Content-Disposition: inline In-Reply-To: X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-3.0 (m1.opengroup.org [172.20.55.20]); Sun, 10 May 2015 18:47:04 -0700 (PDT) X-Spam-Flag: NO X-Scanned-By: milter-spamc/0.25.320 (mimas [172.20.55.20]); Sun, 10 May 2015 18:47:26 -0700 X-Spam-Status: NO, hits=-10.60 required=5.00 X-Spam-Level: X-Virus-Scanned: clamav-milter 0.98 at m1.opengroup.org X-Virus-Status: Clean Resent-Message-ID: <"lAHCRB.A.LDD.xoAUVB"@Phoebe.vpn.opengroup.org> Resent-To: austin-group-l-7882/jkIBncuagvECLh61g@public.gmane.org Resent-From: austin-group-l-7882/jkIBncuagvECLh61g@public.gmane.org X-Mailing-List: austin-group-l:archive/latest/22441 X-Loop: austin-group-l-7882/jkIBncuagvECLh61g@public.gmane.org Precedence: list Resent-Sender: austin-group-l-request-7882/jkIBncuagvECLh61g@public.gmane.org Xref: news.gmane.org gmane.comp.standards.posix.austin.general:10770 gmane.linux.lib.musl.general:7623 gmane.comp.compilers.clang.devel:42686 Archived-At: --CeC2K4acttR/mmFn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 10 May 2015 20:31, =E7=BD=97=E5=8B=87=E5=88=9A(Yonggang Luo) wrote: > For example, the open function exist both in msvcrt and posix, > int open(const char *path, int oflag, ...); >=20 > But in msvcrt, the path is ANSI encoding, and in posix, path is utf8 enco= ding, 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= =20 directly to the kernel which more or less passes it directly to the fs driv= er. =20 how some FS drivers interpret that string depends on the FS. -mike --CeC2K4acttR/mmFn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVUAoVAAoJEEFjO5/oN/WBcNIP/2NIgPtxSt6xpeTczzSKMsRr ODmugviyKuEPioJ9DFQktFxvW1JCajUBlfL33lqd4l2pCD4kLtS+zle2OxHMvMid YyzasApJu7LD5WfW8xtOB8xUOC39wdZpOJC9tOCunySJq9do7feXuyGoN+gtPqn3 wDmfM5KPPcdkTAUSmrY5MoZvrpCOsR86qMSNG4XxEomrkqmrxkE6GaoCvLtSHkaZ AUt4mtgPXJ6AsMgJcqYksHagLJRoomQCE9TTfpK7uRF+X0MwSgNgLOD7Qz13etk+ gsz7u3TWDTPENNAysnDmZ2AveSpeGsTmEBkZg3vhCJdtg4/pz1ZqHMjixGpiFe+0 TTuNKj1jbn3bT+T5mmlHt/fXNqnBsWVz6xmTdDAU8yFz7h7biEVd/LhAtm5fsJRa uKCPb1VdkqnpR2C7xAY/RtMEHigXSRw7x98658NyTqATq/KL0LFkN6g+INJ/bbUE AWacklSPbka+tjtWC2cwCzMCMmU9ttyRjfRYttMXZ95MKDkIWqjlvRf7QW5f5VN3 9MiGo6JxHZZjYWgrd43RZSlAX9RjuezjMH2DwvnslNREvcuJGT8VRWZs5GlkgqSD fnEeMQMYCzxBkxhrTAYAyNp8pXZD+NqcuT80CapgLOVCRNw4aIEkPGwBRy0xuorz X2zBCZnLzkRufKOnZoPF =Pv8U -----END PGP SIGNATURE----- --CeC2K4acttR/mmFn--