Re: [Python-Dev] tarfile and unicode filenames in windows

2006-06-08 Thread Martin v. Löwis
Facundo Batista wrote: > This is because tarinfo.tobuf() creates a unicode object (because it > has the filename on it), and file.write() must have a standard string. > > This is a known problem? Shall I post a bug? Couldn't find any > regarding this, and google didn't help here. You could file a

[Python-Dev] tarfile and unicode filenames in windows

2006-06-08 Thread Facundo Batista
I'm working in Windows 2K SP4. I have a directory with non-ascii names (i.e.: "camión.txt"). I'm trying to tar.bzip it: nomdir = sys.argv[1] tar = tarfile.open("prueba.tar.bz2", "w:bz2") tar.add(nomdir) tar.close() This works ok, even considering that the "ó" in the filename is n