[New-bugs-announce] [issue6909] python 3.1 - filecmp.cmp exception based on file name

jeff deifik report at bugs.python.org
Mon Sep 14 17:11:08 CEST 2009


New submission from jeff deifik <jeff at 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 <report at bugs.python.org>
<http://bugs.python.org/issue6909>
_______________________________________


More information about the New-bugs-announce mailing list