New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language declaration is not consistent for all platforms #1626
Comments
As you are not specifying the language as an option on that debug output I’d have to search and see where fontconfig is being used. It may be a setting outside of cacti or may not. |
Did a quick internet search and this is apparently down to the locale that you have set for your session. See LC_ALL variable. You can find valid settings for this using locales -a See ariya/phantomjs#13433 (comment) That's just one example, if you do a search you'll find this issue has cropped up all over the place so not a cacti-issue itself. |
@netniV This is not a solution to the problem
Similar situations exist for different products, as the definition and local variables differ on different OSes. |
Here I once did a patch for locale definition on FreePBX pautiina/framework@b7a9577 |
Yes, but you have to have the locale installed. Have you double checked that it is installed and being used. I may not have linked to the one which shows how to double check that, but I think you can run In fact, I just googled to make sure I was right: Now different OSes may have slightly different ways of doing that but unless the locale is installed, you will get the above warning. |
@netniV This is my locale and it is installed, but the code does not correctly define it:
And from this locale run apache, which confirms the phpinfo: |
httpd-error.log have message about Fontconfig
This issue is resolved now. Just simply update the lib/rrd.php. This was a missed change when we corrected language support a few releases ago. |
Not resolved, but message changed: |
This patch completely solves the problem on my system (FreeBSD), but I can not test it on other systems:
|
Well, it would appear that the real issue is that RHEL and other Linux's suffix with '.utf8', and FreeBSD suffixes with '.UTF-8'. Isn't that so much fun!. Additionally, for auto browser detection, the country codes come back 'en-US' and 'ru-RU'. So, though I appreciate the effort, the real fix is to either load the locales and autodetect the suffix use by the OS, or provide a setting. I'm convinced to just issue the |
Upon further investigation, even with the |
Okay, I've taken another shot at this. |
It seems to work :) |
The latest develop branch on httpd-error.log have next message:
Fontconfig warning: ignoring ru-RU: not a valid language tag (ru-RU.UTF-8)
About this also say rrdtool:
The text was updated successfully, but these errors were encountered: