Quote from: OpenGeek at Feb 10, 2010, 10:42 AM
Do you have any other plugins enabled on your system, or snippets running on that Resource that might be causing problems? Is it published?
I’ve run the latest tests on a clean install of Evo 1.0.2. The resource is published, all plugins are disabled (tried disabling also TransAlias, after saving the document with "äm"-alias) and the only snippet on test template is Wayfinder, which seems not to interfere.
By a distant hunch (had some problems exporting site to static HTML a long time ago), found a cause of the problem:
If Configuration -> Friendly URLs -> Use Friendly URL alias path is turned on, error 404 is returned. Turn Friendly URL alias path off and alias is working fine.
Debugging variables to a log file, I found that on manager/includes/document.parser.class.inc.php, line 336, the basename function strips off the first utf-8 character:
A quick and dirty fix, and obviously not the best and most flexible one is to set the locale before the function call to f.ex.
setlocale(LC_ALL, 'fi_FI.UTF8');
Edit:
setlocale(LC_CTYPE, 'fi_FI.UTF8');
seems to be enough.
Could this pose some problems on a multilingual site? Setting the locale at the start of the template via snippet or in manager language include file doesn’t have an effect. Is there be a better place to handle this and could some of the system settings be of help in this case?