<?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>41548</bug_id>
          
          <creation_ts>2004-02-14 04:10 0000</creation_ts>
          <short_desc>dev-lang/python-2.3.3: xml.dom.minidom breaks for LANG=en and LANG=en_US</short_desc>
          <delta_ts>2004-02-29 01:16:06 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>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sascha-gentoo-bugzilla@silbe.org</reporter>
          <assigned_to>python@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>sascha-gentoo-bugzilla@silbe.org</who>
            <bug_when>2004-02-14 04:10:47 0000</bug_when>
            <thetext>If the environment variable LANG is set to &quot;en&quot; or &quot;en_US&quot;, xml.dom.minidom breaks:

=== Begin ===
sascha@cube:~/firma/arch/profiles--mainstream--1.0/tools$ LANG=en_US ./genconfig.py 
Traceback (most recent call last):
  File &quot;./genconfig.py&quot;, line 3, in ?
    import xml.dom.minidom
  File &quot;/usr/lib/python2.3/site-packages/_xmlplus/dom/__init__.py&quot;, line 237, in ?
    import MessageSource
  File &quot;/usr/lib/python2.3/site-packages/_xmlplus/dom/MessageSource.py&quot;, line 22, in ?
    gettext.install(&apos;4Suite&apos;, locale_dir)
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 428, in install
    translation(domain, localedir, fallback=True).install(unicode)
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 416, in translation
    t = _translations.setdefault(key, class_(open(mofile, &apos;rb&apos;)))
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 176, in __init__
    self._parse(fp)
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 304, in _parse
    tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET
sascha@cube:~/firma/arch/profiles--mainstream--1.0/tools$ LANG=en ./genconfig.py 
Traceback (most recent call last):
  File &quot;./genconfig.py&quot;, line 3, in ?
    import xml.dom.minidom
  File &quot;/usr/lib/python2.3/site-packages/_xmlplus/dom/__init__.py&quot;, line 237, in ?
    import MessageSource
  File &quot;/usr/lib/python2.3/site-packages/_xmlplus/dom/MessageSource.py&quot;, line 22, in ?
    gettext.install(&apos;4Suite&apos;, locale_dir)
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 428, in install
    translation(domain, localedir, fallback=True).install(unicode)
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 416, in translation
    t = _translations.setdefault(key, class_(open(mofile, &apos;rb&apos;)))
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 176, in __init__
    self._parse(fp)
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 304, in _parse
    tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET
=== End ===

With LANG set to anything else it works:

sascha@cube:~/firma/arch/profiles--mainstream--1.0/tools$ LANG=de ./genconfig.py 
Syntax: genconfig.py &lt;hostName&gt;
sascha@cube:~/firma/arch/profiles--mainstream--1.0/tools$ LANG=garbage ./genconfig.py 
Syntax: genconfig.py &lt;hostName&gt;




Reproducible: Always
Steps to Reproduce:
1. LANG=en python
2. import xml.dom.minidom
3.

Actual Results:  
sascha@cube:~/firma/arch/profiles--mainstream--1.0/tools$ LANG=en python
Python 2.3.3 (#1, Jan 27 2004, 12:54:18) 
[GCC 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import xml.dom.minidom
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in ?
  File &quot;/usr/lib/python2.3/site-packages/_xmlplus/dom/__init__.py&quot;, line 237, in ?
    import MessageSource
  File &quot;/usr/lib/python2.3/site-packages/_xmlplus/dom/MessageSource.py&quot;, line 22, in ?
    gettext.install(&apos;4Suite&apos;, locale_dir)
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 428, in install
    translation(domain, localedir, fallback=True).install(unicode)
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 416, in translation
    t = _translations.setdefault(key, class_(open(mofile, &apos;rb&apos;)))
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 176, in __init__
    self._parse(fp)
  File &quot;/usr/lib/python2.3/gettext.py&quot;, line 304, in _parse
    tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET
&gt;&gt;&gt; 


Expected Results:  
Import the xml.dom.minidom Python module.



Gentoo Base System version 1.4.3.13
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.23-cube-2)
=================================================================
System uname: 2.4.23-cube-2 i686 AMD Athlon(tm) processor
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=pentium -mcpu=athlon-tbird -O3 -pipe&quot;
CHOST=&quot;i586-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/vice/etc /var/qmail/alias /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/afs/C /etc/afs/afsws /etc/afs/modload /etc/gconf /etc/make.globals /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox strict userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://hybrid.sascha.silbe.org/gentoo-portage&quot;
USE=&quot;3dnow X acl afs apm avi berkdb cdr crypt dga doc dvd encode foomaticdb gdbm gif gtk gtk2 gtkhtml guile hbci imap imlib ipv6 j-noaim j-nomsn j-noyahoo jpeg kde krb4 lcms libg++ libwww linguas_en,de mad maildir mbox mikmod mmx monitor mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib png postgres python qt qtmt quicktime readline samba sdl skey spell ssl tetex tiff truetype x86 xml xml2 xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>liquidx@gentoo.org</who>
            <bug_when>2004-02-14 06:18:36 0000</bug_when>
            <thetext>can&apos;t reproduce this. what version of 4Suite do you have?

LANG=&quot;en_US&quot; python -c &quot;import xml.dom.MessageSource&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sascha-gentoo-bugzilla@silbe.org</who>
            <bug_when>2004-02-14 06:25:23 0000</bug_when>
            <thetext>I do not have 4suite installed:

*  dev-python/4suite
      Latest version available: 1.0_alpha3
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 2,290 kB
      Homepage:    http://www.4suite.org/
      Description: Python tools for XML processing and object-databases.
      License:     Apache-1.1


But I do have dev-python/pyxml-0.8.2 installed and /usr/lib/python2.3/site-packages/_xmlplus/dom/MessageSource.py belongs to it:

sascha@cube:~$ qpkg -v -f /usr/lib/python2.3/site-packages/_xmlplus/dom/MessageSource.py 
dev-python/pyxml-0.8.2 *


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>liquidx@gentoo.org</who>
            <bug_when>2004-02-28 15:27:10 0000</bug_when>
            <thetext>can you please try pyxml-0.8.3 ? this should be fixed with that version.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sascha-gentoo-bugzilla@silbe.org</who>
            <bug_when>2004-02-28 15:51:11 0000</bug_when>
            <thetext>With pyxml-0.8.3 it works fine. Thanks!

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>liquidx@gentoo.org</who>
            <bug_when>2004-02-29 01:16:06 0000</bug_when>
            <thetext>thanks for getting back. i&apos;ve bumped 0.8.3 to stable now.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>