[Python-bugs-list] [ python-Bugs-728277 ] Tools/msgfmt.py results in two warnings under Python 2.3b1

SourceForge.net noreply@sourceforge.net
Fri, 09 May 2003 01:59:37 -0700


Bugs item #728277, was opened at 2003-04-27 05:35
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=728277&group_id=5470

Category: Demos and Tools
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Stephan R.A. Deibel (sdeibel)
Assigned to: Martin v. Löwis (loewis)
Summary: Tools/msgfmt.py results in two warnings under Python 2.3b1

Initial Comment:
Running Tools/msgfmt.py under Python 2.3b1 (also the
alphas) results in the following warnings:

[sdeibel@hedgehog build-files]$ python2.3
~/src/Python-2.3b1/Tools/i18n/msgfmt.py --help
sys:1: DeprecationWarning: Non-ASCII character '\xf6'
in file
/home/sdeibel/src/Python-2.3b1/Tools/i18n/msgfmt.py on
line 3, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
/home/sdeibel/src/Python-2.3b1/Tools/i18n/msgfmt.py:86:
FutureWarning: hex/oct constants > sys.maxint will
return positive values in Python 2.4 and up
  0x950412de,        # Magic

Doesn't cause any problems but would be cleaner to add
encoding info and the 'L' for the constant.

This is on Mandrake 8.2 but I'm sure it happens everywhere.

- Stephan


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-05-09 10:59

Message:
Logged In: YES 
user_id=21627

Fixed in msgfmt.py 1.3.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=728277&group_id=5470