DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 56OMYi4L1661293 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 56OMYi4L1661293 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=qnQFrgFL X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF522385417D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1753396481; bh=KcYIbnDoygtbQidVRudpGiKG1qLFS6vG8iL3VSEe9vg=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=qnQFrgFLe+3OqJ6B6AvriwN+u+7B5C//ldGzmeSptuha8XYnv5LPVxhWyNywOQZkz XRIS7N0H7hoyqquELhQU2DpleFQZAij2hAGEWRRG7V3iBNAvLUn03EV/s5CGU7MIZr gy+Cy+8WOQyFlrDEB3TvQNrvRdohSq+YwiEXTzNI= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 303EE385DC0A ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 303EE385DC0A ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1753396409; cv=none; b=TjNjJ3OcgO2xqdiGvBippeEcVYhO4IwO1KDJWNhj/DQFH9jjlz9AhrTGxOwXLUfTJFF1DsQ8xC6wdJOc0vFw1YO3GgeL5ErdoAcf1lCB1KI5kpqdIgoaJHkylGcWk31k+rZ8c1OPG21BKer3+EibotLYpuGWsNwp5NPWxFuYYG8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1753396409; c=relaxed/simple; bh=W4z//sAsDgTQ2kiU5TwgqxeVdwGuGyv0X9APPqL+Tzo=; h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; b=gYRo1RulpyOcCNR2XN3XpkQJIDPpc4/4YPevLbTY+Vf8DDmpjLSGdRIpVyerf47zGvdAwfFPtUEy9tw1n+FFN6hGM5lRd1piB9hFDAVsWwlMSzAqHa0QzKkU1iuyBph7ISzh+SeMruOgsDUGzfv4rkzzIfslAOz03ANyOUTnVQY= ARC-Authentication-Results: i=1; server2.sourceware.org Message-ID: Date: Thu, 24 Jul 2025 16:33:26 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: readdir() returns inaccessible name if file was created with invalid UTF-8 Content-Language: en-CA To: cygwin AT cygwin DOT com References: <91f26856-72b0-483b-8d04-bd90a27b6be0 AT towo DOT net> <4ab2c1b7-3164-4556-ba36-29814ecf5766 AT towo DOT net> <68f65634-8f4e-436b-ba6a-d30bdf882aaa AT towo DOT net> <11282182-60d1-4841-bf78-5ef78cf30060 AT towo DOT net> Organization: Systematic Software In-Reply-To: X-Stat-Signature: eg5ttpd15r5ma75j7ixo9put7yxx54t5 X-Rspamd-Server: rspamout07 X-Rspamd-Queue-Id: 2EA353E X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX19i9M9niv9jeMksf9TG9656sEk9o2Rhjgg= X-HE-Tag: 1753396407-559879 X-HE-Meta: U2FsdGVkX18fSLNH45IpYgXZ392sndlr61q/wjIbkltCLLJTIpLLRBqjsKl7Wj07eWML5u/y13vKawVcb/kirKzigB+dk/tnIwS0WpWehLWXTcUT00p80nMjYNqqUFcgWoGwHAmOSzpY57n4UJX2PSzGZzC1usrrgsCkrztITL5Jap8MwXr9ez4k7VWCjmrT/Dh9DtLynLucmrVctnXYBAmRIO5FAcz0kU7rP3lc6keMOVXg9I9WxpTlZIqJX5aE/fOAXWz0F5S2aB1Mg2Oas2o/61HImThrZn0dcCVv2i6HWk56QJQ3RLpfYuwwB9PqcurY0a3dXearacD2YU5r5WzqsVtmRXwl X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 56OMYi4L1661293 On 2025-07-24 09:36, Corinna Vinschen via Cygwin wrote: > On Jul 24 09:28, Brian Inglis via Cygwin wrote: >> On 2025-07-24 04:30, Corinna Vinschen via Cygwin wrote: >>> Or shall simply go along with CESU-8 when converting back to multibyte >>> to keep the string the same as with wcstombs? >> >> There are 15 * SMP as BMP characters, so many non-Western and emoji >> characters will be expanded from 4 UTF-8 bytes to 6 CESU-8 bytes, and this >> is not supported anywhere as a string representation, designed for internal >> use only per the TR. > > We're only talking about invalid sequences, not using CESU-8 throughout. That was not clear, so then as they say "go along to get along"? ;^> -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut -- Antoine de Saint-Exupéry -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple