Re: [RFA] Fix cygwin compilation failure due to nameless LOAD_DLL_DEBUG_EVENT causes ntdll.dll to be missing

Corinna Vinschen
2013-12-18T17:18:24Z

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

On Dec 18 19:03, Eli Zaretskii wrote:
> > Date: Wed, 18 Dec 2013 17:07:07 +0100
> > > Are you sure that 32K capability cannot be had with ANSI file names
> > > using the \\?\ notation?
> >
> > Yes. The \\?\ notation only works in the UNICODE API[*]. The reason
> > is that the ANSI API is just a thin layer over the actual UNICODE
> > functionality, and the conversion from ANSI to UNICODE is done using a
> > per-thread fixed-size buffer of 520 bytes.
>
> Does this mean that using \\?\ with ANSI-encoded file names buys us
> 520-byte file names?

260 char ANSI -> 520 bytes UTF-16

Corinna

--
Corinna Vinschen
Cygwin Maintainer
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]