• Eli Zaretskii's avatar
    Fix bug #13515 with processing DBCS file names on MS-Windows. · 6d2851de
    Eli Zaretskii authored
     src/w32.c (max_filename_mbslen): New function.
     (normalize_filename, readdir): Use it to detect locales where ANSI
     encoding of file names uses a double-byte character set (DBCS).
     If a DBCS encoding is used, advance by characters using
     CharNextExA, instead of incrementing a 'char *' pointer.  Use
     _mbslwr instead of _strlwr.
ChangeLog 772 KB