Documentation says about apodization functions:
When more than one function is specified, then for every subframe the encoder will try each of them separately and choose the window that results in the smallest compressed subframe.
So, from manual it is not clear at all if order of functions does matter or not. But it does matter.
For example
flac.exe -l 12 -b 4096 -m -r 6 -A tukey(0,5);partial_tukey(2);punchout_tukey(3) input.wav -o output.flac
input.wav: wrote 178263 bytes, ratio=0,306
and
flac.exe -l 12 -b 4096 -m -r 6 -A partial_tukey(2);punchout_tukey(3);tukey(0,5) input.wav -o output.flac
output.wav: wrote 175430 bytes, ratio=0,305
result in different compression despite the same apodization functions are used, just order is different. FLAC version is 1.3.3, wav file - https://www.dropbox.com/s/q4p1fmaqewxltdg/2_5357505388570740373.wav?dl=1
So, how this actually works? Is documentation not clear or this is bug?