Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96535 - net-analyzer/mrtg-2.12.1 refuses to start in UTF-8 locales
Summary: net-analyzer/mrtg-2.12.1 refuses to start in UTF-8 locales
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-06-19 09:50 UTC by Lars T. Mikkelsen
Modified: 2005-06-19 11:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mrtg.rc.patch (mrtg.rc.patch,296 bytes, patch)
2005-06-19 09:51 UTC, Lars T. Mikkelsen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars T. Mikkelsen 2005-06-19 09:50:06 UTC
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 ]
Comment 1 Lars T. Mikkelsen 2005-06-19 09:51:12 UTC
Created attachment 61504 [details, diff]
mrtg.rc.patch

Patch to fix UTF-8 locales
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2005-06-19 11:26:10 UTC
Tested and confirmed it.
Thanks for reporting, your fix is in CVS.