New submission from jeff deifik <j...@jeffunit.com>:

I am calling filecmp.cmp on a two files, one of which has a name of

'./Julio_Iglesias-Un_Hombre_Solo-05-Qu\udce9_no_se_rompa_la_noche.mp3'

I get an exception from filecmp.cmp saying:
 'ascii' codec can't encode character '\udce9' in position 37: ordinal
not in range(128)

I do not understand why filecmp.cmp cares what the encoding of the names
of the files are, as long as they are valid files. I would think
filecmp.cmp would only care about the content of the files.

When I give it pure ascii names, filecmp.cmp works file, however some of
my files have udce9 encoded names.

This is on a windows xp machine running cygwin (linux emulation).
I built and compiled python3.1 from source.

----------
messages: 92613
nosy: jdeifik
severity: normal
status: open
title: python 3.1 - filecmp.cmp exception based on file name
type: behavior
versions: Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6909>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to