Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-19 Thread Brian Inglis via Cygwin
On 2024-09-19 11:30, Christian Franke via Cygwin wrote: Brian Inglis via Cygwin wrote: On 2024-09-19 07:27, Christian Franke via Cygwin wrote: Mark Liam Brown via Cygwin wrote: On Mon, Sep 16, 2024 at 11:51 AM Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: Thomas Wolf

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-19 Thread Christian Franke via Cygwin
Brian Inglis via Cygwin wrote: On 2024-09-19 07:27, Christian Franke via Cygwin wrote: Mark Liam Brown via Cygwin wrote: On Mon, Sep 16, 2024 at 11:51 AM Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thoma

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-19 Thread Jeremy Drake via Cygwin
On Thu, 19 Sep 2024, Brian Inglis via Cygwin wrote: > On 2024-09-19 07:27, Christian Franke via Cygwin wrote: > > > > > > Yes, but Cygwin does not provide consistent forward/reverse UTF-8 <-> UTF-16 > > mappings. > > Surrogates halves are invalid for UTF-8 encoding; they should be first be > encod

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-19 Thread Cedric Blancher via Cygwin
On Thu, 19 Sept 2024 at 16:46, Brian Inglis via Cygwin wrote: > > On 2024-09-19 07:27, Christian Franke via Cygwin wrote: > > Mark Liam Brown via Cygwin wrote: > >> On Mon, Sep 16, 2024 at 11:51 AM Christian Franke via Cygwin > >> wrote: > >>> Christian Franke via Cygwin wrote: > Thomas Wolf

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-19 Thread Brian Inglis via Cygwin
On 2024-09-19 07:27, Christian Franke via Cygwin wrote: Mark Liam Brown via Cygwin wrote: On Mon, Sep 16, 2024 at 11:51 AM Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.20

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-19 Thread Christian Franke via Cygwin
Mark Liam Brown via Cygwin wrote: On Mon, Sep 16, 2024 at 11:51 AM Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a fi

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-17 Thread Mark Liam Brown via Cygwin
On Mon, Sep 16, 2024 at 11:51 AM Christian Franke via Cygwin wrote: > > Christian Franke via Cygwin wrote: > > Thomas Wolff via Cygwin wrote: > >> > >> Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: > >>> Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: > If a file name co

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-16 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a file name contains an invalid (truncated) UTF-8 sequence, open() does not refuse to create the file. Later

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-15 Thread Christian Franke via Cygwin
Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a file name contains an invalid (truncated) UTF-8 sequence, open() does not refuse to create the file. Later readdir() returns a different name

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-15 Thread Thomas Wolff via Cygwin
Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a file name contains an invalid (truncated) UTF-8 sequence, open() does not refuse to create the file. Later readdir() returns a different name which could not be used to acce

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-15 Thread Thomas Wolff via Cygwin
Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a file name contains an invalid (truncated) UTF-8 sequence, open() does not refuse to create the file. Later readdir() returns a different name which could not be used to access the file. Testcase with U+1F321 (Thermometer): $ uname

readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-15 Thread Christian Franke via Cygwin
If a file name contains an invalid (truncated) UTF-8 sequence, open() does not refuse to create the file. Later readdir() returns a different name which could not be used to access the file. Testcase with U+1F321 (Thermometer): $ uname -r 3.5.4-1.x86_64 $ printf $'\U0001F321' | od -A none -t