[Python-bugs-list] [ python-Bugs-414899 ] Pyton1.5.2: urllib.always_safe variable

noreply@sourceforge.net noreply@sourceforge.net
Mon, 09 Apr 2001 07:45:31 -0700


Bugs item #414899, was updated on 2001-04-09 07:45
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=414899&group_id=5470

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: HERMAN Etienne (delun)
Assigned to: Nobody/Anonymous (nobody)
Summary: Pyton1.5.2: urllib.always_safe variable

Initial Comment:
Our environment is:
Python 1.5.2 (#1, Feb  1 2000, 16:32:16)  [GCC
egcs-2.91.66 19990314/Linux (egcs- on linux-i386)
LANG=fr_FR

Bug in the urllib.always_safe variable, it contains
accented characters :

>>> import urllib
>>> print urllib.always_safe
abcdefghijklmnopqrstuvwxyzßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ0123456789_,.-
>>> urllib.quote('élève')
'\351l\350ve'


>>> urllib.always_safe = 'abcdefghijklmnopqrstuvwxyz' +
'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + '0123456789' + '*' +
'_.-'
>>> urllib.quote('élève')
'%e9l%e8ve'

Etienne HERMAN
devel@logilab.fr

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

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