This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: glob() unicode bug
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: lemburg, leve
Priority: normal Keywords:

Created on 2004-08-03 13:53 by leve, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg21930 - (view) Author: leve (leve) Date: 2004-08-03 13:53
#Python 2.3 on W2K
 
import glob

name = glob.glob(u"./*.mp3")[0]
print type(name)
name = glob.glob(u"*.mp3")[0]
print type(name)

##OUTPUT##
#<type 'unicode'>
#<type 'str'>
msg21931 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2004-08-03 14:01
Logged In: YES 
user_id=38388

Duplicate of [ 1001604 ] glob doesn't return unicode with no
dir in unicode filename
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40682
2004-08-03 13:53:52levecreate