sublime-gbk icon indicating copy to clipboard operation
sublime-gbk copied to clipboard

当路径名太长时,转化失败。

Open chenyi1976 opened this issue 12 years ago • 0 comments

比如这个文件:c:\Users\seanc\Dropbox\book\冰与火之歌1-4卷中文完整版带附录地图\卷2\冰与火之歌卷二下.txt

打开时转化会失败,原因是临时文件的文件名太长。

我目前的解决办法是:

将 tmp_file_name = urllib.quote_plus(os.path.basename(file_name)) + SEPERATOR + urllib.quote_plus(file_name)

替换为 tmp_file_name = str(time.time())

供参考。

chenyi1976 avatar Aug 09 '12 04:08 chenyi1976