| Bug#: 96535 | Product: Gentoo Linux | Version: unspecified | Platform: All |
| OS/Version: Other | Status: RESOLVED | Severity: normal | Priority: P2 |
| Resolution: FIXED | Assigned To: netmon@gentoo.org | Reported By: ltm@mulm.dk | |
| Component: Ebuilds | |||
| URL: | |||
| Summary: net-analyzer/mrtg-2.12.1 refuses to start in UTF-8 locales | |||
| Keywords: Inclusion | |||
| Status Whiteboard: | |||
| Opened: 2005-06-19 09:50 0000 | |||
| Description: | Opened: 2005-06-19 09:50 0000 |
The init script of mrtg sets LANG=C if LANG=*utf8 in order to make mrtg start.
The script does, however, miss the case where LANG=*UTF-8 (with a dash):
# set | grep LANG
LANG=en_DK.UTF-8
# /etc/init.d/mrtg start
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/bin/mrtg --check /etc/mrtg.conf
-----------------------------------------------------------------------
* Starting mrtg ... [ ok
]
Created an attachment (id=61504) [details]
mrtg.rc.patch
Patch to fix UTF-8 locales
Tested and confirmed it. Thanks for reporting, your fix is in CVS.