[Libreoffice-commits] .: src/docrecord.py
Miklos Vajna
vmiklos at kemper.freedesktop.org
Wed Nov 21 05:39:52 PST 2012
src/docrecord.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 142d30000ff44df29192112890035bdc6ec92f66
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Wed Nov 21 14:39:42 2012 +0100
FcCompressed: don't try to pretty-print
diff --git a/src/docrecord.py b/src/docrecord.py
index cecdef4..4b4c57a 100755
--- a/src/docrecord.py
+++ b/src/docrecord.py
@@ -31,11 +31,7 @@ class FcCompressed(DOCDirStream):
@staticmethod
def getFCTransformedValue(bytes, start, end):
- # This is a bit ugly, but at this state we don't know yet if the text is compressed or not.
- try:
- return globals.encodeName(bytes[start:end].decode('utf-16'), lowOnly = True)
- except UnicodeDecodeError:
- return globals.encodeName(bytes[start:end])
+ return globals.encodeName(bytes[start:end])
class Pcd(DOCDirStream):
"""The Pcd structure specifies the location of text in the WordDocument Stream and additional properties for this text."""
More information about the Libreoffice-commits
mailing list