client/rhel/rhn-client-tools/src/up2date_client/rhnreg_constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 590a50b3ed5d579206d666e9e84cb9c3b6a25648 Author: Miroslav Suchý msuchy@redhat.com Date: Fri Mar 11 14:39:31 2011 +0100
declare that we are using utf-8
addressing: File "/usr/sbin/rhnreg_ks", line 32, in ? from up2date_client import rhnreg File "/usr/share/rhn/up2date_client/rhnreg.py", line 21, in ? import rhnreg_constants File "/usr/share/rhn/up2date_client/rhnreg_constants.py", line 14, in ? COPYRIGHT_TEXT = _("Copyright © 2006--2010 Red Hat, Inc. All rights reserved.") File "/usr/lib64/python2.4/gettext.py", line 217, in ugettext return unicode(message) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 10: ordinal not in range(128)
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg_constants.py b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg_constants.py index ba9a9d9..e3e6f7a 100644 --- a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg_constants.py +++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg_constants.py @@ -1,4 +1,4 @@ -# This Python file uses the following encoding: utf-8 +# -*- coding: utf-8 -*- # # String constants for the RHN Register TUI/GUI. # Copyright (c) 2000--2010 Red Hat, Inc. @@ -11,7 +11,7 @@ import gettext t = gettext.translation('rhn-client-tools', fallback=True) _ = t.ugettext
-COPYRIGHT_TEXT = _("Copyright © 2006--2010 Red Hat, Inc. All rights reserved.") +COPYRIGHT_TEXT = _(u"Copyright © 2006--2010 Red Hat, Inc. All rights reserved.")
# Connect Window CONNECT_WINDOW = _("Attempting to contact the Red Hat Network server.")