From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7626 Path: news.gmane.org!not-for-mail From: Joerg Schilling 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: Mon, 11 May 2015 12:27:56 +0200 Message-ID: <5550842c.kMHzeizlOZv+0r6r%Joerg.Schilling@fokus.fraunhofer.de> References: <20150509103645.GG29035@port70.net> <20150509200535.GK17573@brightrain.aerifal.cx> <20150511014701.GN30924@vapier> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1431340166 19828 80.91.229.3 (11 May 2015 10:29:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2015 10:29:26 +0000 (UTC) Cc: , , , , , , , , To: , Original-X-From: austin-group-l-request-7882/jkIBncuagvECLh61g@public.gmane.org Mon May 11 12:29:19 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 1Yrkxa-0004Ii-UF for gcsa-austin-group-l-wOFGN7rlS/M9smdsby/KFg@public.gmane.org; Mon, 11 May 2015 12:29:19 +0200 Original-Received: (qmail 24052 invoked by uid 503); 11 May 2015 10:29:07 -0000 Resent-Date: 11 May 2015 10:29:07 -0000 In-Reply-To: <20150511014701.GN30924@vapier> User-Agent: Heirloom mailx 12.5 7/5/10 X-KSE-Antivirus-Interceptor-Info: protection disabled X-cloud-security-sender: joerg.schilling-8LS2qeF34IpklNlQbfROjRvVK+yQ3ZXh@public.gmane.org X-cloud-security-recipient: austin-group-l-7882/jkIBncuagvECLh61g@public.gmane.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-gate35-dus with 76C202118006 X-cloud-security-connect: smtpsrv1.fokus.fraunhofer.de[195.37.77.166], TLS=, IP=195.37.77.166 X-cloud-security: scantime:.1819 X-Greylist: Delayed for 00:00:53 by milter-greylist-3.0 (m1.opengroup.org [172.20.55.20]); Mon, 11 May 2015 03:28:58 -0700 (PDT) X-Spam-Flag: NO X-Scanned-By: milter-spamc/0.25.320 (mimas [172.20.55.20]); Mon, 11 May 2015 03:29:02 -0700 X-Spam-Status: NO, hits=-5.90 required=5.00 X-Spam-Level: X-Virus-Scanned: clamav-milter 0.98 at m1.opengroup.org X-Virus-Status: Clean Resent-Message-ID: <"T_XqvD.A.62F.zRIUVB"@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/22444 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:10774 gmane.linux.lib.musl.general:7626 gmane.comp.compilers.clang.devel:42693 Archived-At: Mike Frysinger wrote: > 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 I remember that a while ago (probably around 2001), Microsoft tried to reword POSIX to permit 16 bit characters by default to make their interface POSIX compliant. This caused a long discussion that ended with the conclusion, that we cannot do that. Jörg -- EMail:joerg-lSlhzV3CM+2sTnJN9+BGXg@public.gmane.org (home) Jörg Schilling D-13353 Berlin joerg.schilling-8LS2qeF34IpklNlQbfROjRvVK+yQ3ZXh@public.gmane.org (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/'