From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.0.0) Description of problem: mrtg seems to suffer from the "LANG" setting in RH8.0. Changing /etc/sysconfig/i18n to LANG="C" allows mrtg to run normally. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. type in "mrtg /etc/mrtg/mrtg.cfg" 2. Watch errors fly by 3. Additional info:
I'm having the same error: Malformed UTF-8 character (unexpected continuation byte 0xa4, with no preceding start byte) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 248. Malformed UTF-8 character (unexpected continuation byte 0xa4, with no preceding start byte) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 248. Malformed UTF-8 character (unexpected continuation byte 0xa4, with no preceding start byte) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 248. Malformed UTF-8 character (unexpected non-continuation byte 0xc6, 1 byte after start byte 0xe5, expected 3 bytes) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 248. Malformed UTF-8 character (unexpected continuation byte 0xa7, with no preceding start byte) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 248. Malformed UTF-8 character (unexpected continuation byte 0xaa, with no preceding start byte) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 248. Malformed UTF-8 character (unexpected non-continuation byte 0x0a, immediately after start byte 0xcc) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 248. etc...... I've tried changing the LANG setting, but still fails. josh.
Did you try 'export LANG="C"' before running mrtg? I think you need to reboot before changing the setting in /etc/sysconfig/i18n will take effect. If mrtg still gives all the errors try typing 'set | grep LANG' and see what it says.
# export LANG="C" That did the trick! Thanks for your help in resolving this. josh.
MRTG's cfgmaker also has problems with the RH8/9 LANG setting. It doesn't abort, but outputs a corrupt mrtg.cfg file with lots of extra junk in it. Changing LANG to "C" also fixes the problem with cfgmaker.
This problem exists in FC1 as well. I didn't expect that, given the extensive review process for FC1.
This is not a problem for the default setup using cron because cron doesn't pass any LANG value. When mrtg-2.10.5-3 is run from the command line, it prints a detailed error message if LANG specifies UTF-8.
*** Bug 88747 has been marked as a duplicate of this bug. ***