Hey, sorry for taking up your time earlier. I just rebuilt the search index and now it works.
Problem solved.
But what's strange is that the fact that setlocale can't set the locale doesn't matter for swedish åäö-searches in PunBB?
I also found a way to get the change of locale to actually work:
<?php
$locale = 'sv_SE.ISO_8859-1';
echo 'Before: '.setlocale(LC_CTYPE, '').'<br />';
putenv('LC_CTYPE='.$locale); // works for me in FreeBSD
//echo 'New Loc: '.setlocale(LC_CTYPE, $locale).'<br />'; // not working for me
echo 'After: '.setlocale(LC_CTYPE, '');
?>
But this isn't necessary for PunBB as I said.
EDIT: I can't remember having changed language which would require rebuilding the index and whats strange is that posts after ~July 10th containing åäö was found even before rebuilding the index.
/IoR_Kongo @swec