Re: [patch][Win32] Problem with very long file name

2014-10-16 Fir de Conversatie Ken Takata
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

Re: [patch][Win32] Problem with very long file name

2014-10-16 Fir de Conversatie Charles Campbell
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

Re: [patch][Win32] Problem with very long file name

2014-10-15 Fir de Conversatie Bram Moolenaar
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

[patch][Win32] Problem with very long file name

2014-10-12 Fir de Conversatie Ken Takata
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