v2: - if it gets too long, skip directory instead of allocating more memory. Behaves like native with these commands: ``` $ LANG=C wine cmd /K "c:" c:\>mkdir c:\1234567890\1234567890 c:\>echo test > c:\1234567890\1234567890\123456789012345678901234567890.txt c:\>rename c:\1234567890\1234567890 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 12345678901234567890123412345678901234567890 c:\>dir c:\1234567890\123456789012345678901234567890.txt /s Volume in drive c has no label. Volume Serial Number is 4300-0000 File not found. c:\>rename c:\1234567890\1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901 234567890123412345678901234567890 1234567890 c:\>del c:\1234567890\1234567890\123456789012345678901234567890.txt c:\>rmdir c:\1234567890\1234567890 c:\>rmdir c:\1234567890 c:\> ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9577#note_123661