﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2453	FileFindNextFile can find not-matching mask files if non-English letters presented in the file name	anonymous	Jon	"It seems windows bug/feature, but still...
it affect results of FileListToArray
To reproduce -  run in Unicode:

{{{
#include <Array.au3>
#include ""File.au3""

$path = 'd:\12345' ;folder with is used to create files

$files = StringSplit(""file.txt|file1.txt|file2.txt|prefix_file.txt|йfile.txt|начало file.txt|начало_file.txt|йfilйe.tйxt"", ""|"")
FileChangeDir($path)
For $i = 1 To UBound($files) - 1
    _FileCreate($files[$i])
Next

$FileList1 = _FileListToArray($path, 'file*.txt')
_ArrayDisplay($FileList1, 'Find Files')

For $i = 1 To UBound($files) - 1
    FileDelete($files[$i])
Next
}}}

Alternative:

{{{
Func _FileListToArrayEx($sPath, $sFilter = ""*"", $iFlag = 0)
    Local $hSearch, $aResult, $sFile, $sFileList, $sDelim = ""|""
    $sPath = StringRegExpReplace($sPath, ""[\\/]+\z"", """") & ""\""
    If Not FileExists($sPath) Then Return SetError(1, 1, """")
    If StringRegExp($sFilter, ""[\\/:><\|]|(?s)\A\s*\z"") Then Return SetError(2, 2, """")
    If Not ($iFlag = 0 Or $iFlag = 1 Or $iFlag = 2) Then Return SetError(3, 3, """")
    $hSearch = FileFindFirstFile($sPath & '*')
    If @error Then Return SetError(4, 4, """")
    While 1
        $sFile = FileFindNextFile($hSearch)
        If @error Then ExitLoop
        If ($iFlag + @extended = 2) Then ContinueLoop
        $aResult = DllCall('shlwapi.dll', 'int', 'PathMatchSpecW', 'wstr', $sFile, 'wstr', $sFilter)
        If (Not @error) And ($aResult[0]) Then $sFileList &= $sDelim & $sFile
    WEnd
    FileClose($hSearch)
    If Not $sFileList Then Return SetError(4, 4, """")
    Return StringSplit(StringTrimLeft($sFileList, 1), ""|"")
EndFunc   ;==>_FileListToArrayEx
}}}

----

Link : [http://autoit-script.ru/index.php/topic,4285.0.html]
"	Bug	closed	3.3.11.0	AutoIt	3.3.8.1	None	Fixed		
