<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>96535</bug_id>
          
          <creation_ts>2005-06-19 09:50 0000</creation_ts>
          <short_desc>net-analyzer/mrtg-2.12.1 refuses to start in UTF-8 locales</short_desc>
          <delta_ts>2005-06-19 11:26:10 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>Inclusion</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ltm@mulm.dk</reporter>
          <assigned_to>netmon@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ltm@mulm.dk</who>
            <bug_when>2005-06-19 09:50:06 0000</bug_when>
            <thetext>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 ]</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ltm@mulm.dk</who>
            <bug_when>2005-06-19 09:51:12 0000</bug_when>
            <thetext>Created an attachment (id=61504)
mrtg.rc.patch

Patch to fix UTF-8 locales</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vanquirius@gentoo.org</who>
            <bug_when>2005-06-19 11:26:10 0000</bug_when>
            <thetext>Tested and confirmed it.
Thanks for reporting, your fix is in CVS.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>61504</attachid>
            <date>2005-06-19 09:51 0000</date>
            <desc>mrtg.rc.patch</desc>
            <filename>mrtg.rc.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG1ydGcucmMub3JpZwkyMDA1LTA2LTE5IDE4OjQyOjQ2LjAwMDAwMDAwMCArMDIwMAorKysg
bXJ0Zy5yYwkyMDA1LTA2LTE5IDE4OjQyOjU3LjAwMDAwMDAwMCArMDIwMApAQCAtMjIsNyArMjIs
NyBAQAogCiBzdGFydCgpIHsKIAkjIG1ydGcgd2lsbCBub3QgcnVuIGlmIExBTkc9KnV0ZjgKLQlb
WyAiJHtMQU5HfSIgPT0gKlt1VV1bdFRdW2ZGXTggXV0gJiYgTEFORz0nQycKKwlbWyAiJHtMQU5H
fSIgPT0gKlt1VV1bdFRdW2ZGXT84IF1dICYmIExBTkc9J0MnCiAKIAljaGVja2NvbmZpZyB8fCBy
ZXR1cm4gJD8KIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>