Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155686 - games-kids/childsplay - locale problem causes crash
Summary: games-kids/childsplay - locale problem causes crash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-19 09:08 UTC by skelter
Modified: 2007-11-09 19:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description skelter 2006-11-19 09:08:09 UTC
skelter@tbone ~ $ childsplay
sys:1: DeprecationWarning: Non-ASCII character '\xa9' in file /usr/share/games/c hildsplay/childsplay.py on line 308, but no encoding declared; see http://www.py thon.org/peps/pep-0263.html for details

     Copyright (C) 2002-2003 Stas Z. <stas@linux.isbeter.nl>

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2, or (at your option)
 any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

 Childsplay - A suite of educational games for young children.

  This is beta software, please send bugs and/or comments to
  childsplay@users.sourceforge.net
Traceback (most recent call last):
  File "/usr/share/games/childsplay/childsplay.py", line 149, in ?
    gettext.install('childsplay',localedir)
  File "/usr/lib/python2.4/gettext.py", line 480, in install
    t = translation(domain, localedir, fallback=True, codeset=codeset)
  File "/usr/lib/python2.4/gettext.py", line 465, in translation
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib/python2.4/gettext.py", line 177, in __init__
    self._parse(fp)
  File "/usr/lib/python2.4/gettext.py", line 324, in _parse
    tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET
skelter@tbone ~ $
Comment 1 Ed Davison 2006-11-26 18:55:44 UTC
Same problem here.
Comment 2 Peter Fox 2006-11-28 14:04:30 UTC
I added the line

# -*- coding: utf-8 -*-

as the second line in 

/usr/share/games/childsplay/childsplay.py

which gets rid of the DeprecationWarning, but it still goes splat
with the same error as before.

I also tried

# -*- coding: iso8859-1 -*-

as the 
Comment 3 Peter Fox 2006-11-28 14:04:30 UTC
I added the line

# -*- coding: utf-8 -*-

as the second line in 

/usr/share/games/childsplay/childsplay.py

which gets rid of the DeprecationWarning, but it still goes splat
with the same error as before.

I also tried

# -*- coding: iso8859-1 -*-

as the © symbol on line 308 is code 0xa9 in this encoding, but it still dies.
Comment 4 Peter Fox 2006-11-30 09:51:13 UTC
games-kids/childsplay-0.83.1 is fine here, why is this marked unstable ?
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2007-11-09 19:53:45 UTC
dropped the old version.