Hi Bram,
2014/10/15 Wed 19:57:03 UTC+9 Bram Moolenaar wrote:
Ken Takata wrote:
open() and fopen() are implemented with CreateFileA(), and CreateFileA() can
handle maximum MAX_PATH characters (*1).
However, some other CRT functions are limited to MAX_PATH bytes (e.g.
stat()).
This
Ken Takata wrote:
snip
To avoid this problem, maximum length should be limited to MAX_PATH
bytes. (If someone want to handle a file name which is longer than
MAX_PATH bytes and shorter than MAX_PATH characters, he should set
'enc' to utf-8.) I wrote a patch to fix this problem. Please check
Ken Takata wrote:
When opening a very long file name on Windows, the file becomes an empty file
if 'encoding' is not utf-8.
E.g.:
Step 1: Create a file with a very long name (longer than MAX_PATH bytes and
shorter than MAX_PATH characters)
vim
Hi,
When opening a very long file name on Windows, the file becomes an empty file
if 'encoding' is not utf-8.
E.g.:
Step 1: Create a file with a very long name (longer than MAX_PATH bytes and
shorter than MAX_PATH characters)
vim