From d58de47f0ed2aa3bc8c2340e711f3363b0ab1156 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 7 Apr 2012 19:00:40 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index 3b8d13fb3f..7ee2c83e7a 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -460,7 +460,7 @@ class DirContainer(object): # On linux, if LANG is unset, the os.stat call tries to encode the # unicode path using ASCII # To replicate try: - # LANG=en_US.ASCII python -c "import os; os.stat('Espa\xf1a')" + # LANG=en_US.ASCII python -c "import os; os.stat(u'Espa\xf1a')" return os.path.isfile(path.encode(filesystem_encoding)) def namelist(self):