flying-circus / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

UnicodeDecodeError in _FTPFile.seek() #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open file from FTPFS with non ASCII characters in path (unicode path).
2. Use method seek(...) for opened file.

What is the expected output? What do you see instead?

We get the exception UnicodeDecodeError.

What version of the product are you using? On what operating system?

Centos 5.3
Python 2.7
fs-0.4

Please provide any additional information below.

Need patch the method _FTPFile.seek() in line 745:

- self.__init__(self.ftpfs, self.ftp, _encode(self.path), self.mode)
+ self.__init__(self.ftpfs, self.ftp, self.path, self.mode)

Original issue reported on code.google.com by cyk...@gmail.com on 5 Mar 2013 at 7:34

GoogleCodeExporter commented 9 years ago
Patch for fs-0.4.0 in attached file

Original comment by cyk...@gmail.com on 5 Mar 2013 at 8:00

Attachments:

GoogleCodeExporter commented 9 years ago
Applied patch. Thanks.

Original comment by willmcgugan on 10 Sep 2013 at 9:04