The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit d2d0f1964ddafb1b46448a9e2d59255cf2875283
Author: Georg Baum <[email protected]>
Date:   Sat Feb 23 12:23:29 2013 +0100

    Fix lyx2lyx for layout files with umlauts
    
    lyx2lyx died with UnicodeDecodeError: 'ascii' codec can't decode byte if a
    layout with a non-ASCII character in the file name was used, since the
    textclass member of the LyX class was of type str, and not unicode.

diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py
index 9a47638..7e02761 100644
--- a/lib/lyx2lyx/LyX.py
+++ b/lib/lyx2lyx/LyX.py
@@ -330,6 +330,8 @@ class LyX_base:
         self.initial_version = self.read_version()
 
         # Second pass over header and preamble, now we know the file encoding
+        # Do not forget the textclass (Debian bug #700828)
+        self.textclass = self.textclass.decode(self.encoding)
         for i in range(len(self.header)):
             self.header[i] = self.header[i].decode(self.encoding)
         for i in range(len(self.preamble)):

-----------------------------------------------------------------------

Summary of changes:
 lib/lyx2lyx/LyX.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to