diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-03-23 18:00:09 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-03-23 18:00:09 -0400 |
commit | aff22fe36145128ce22d7cffdf7d9289a136bf8a (patch) | |
tree | a634d9de24fcba34dd0e1e3c8f55bf4135193014 /scratch | |
parent | a0d1e0e644826e5734382234bd2b2fa0d36392d3 (diff) |
[mso-dumper] Convert UTF-16 strings in CRN records.
* scratch/mso-dumper/src/xlsrecord.py:
Diffstat (limited to 'scratch')
-rw-r--r-- | scratch/mso-dumper/src/xlsrecord.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scratch/mso-dumper/src/xlsrecord.py b/scratch/mso-dumper/src/xlsrecord.py index 756197dc2..ad45aca0e 100644 --- a/scratch/mso-dumper/src/xlsrecord.py +++ b/scratch/mso-dumper/src/xlsrecord.py @@ -1334,7 +1334,8 @@ class Crn(BaseRecordHandler): self.appendLine("* numeric value (%g)"%val) elif typeId == 0x2: # string - text, length = globals.getRichText(self.bytes[i:]) + ret, length = globals.getUnicodeRichExtText(self.bytes[i:]) + text = ret.baseText i += length text = globals.encodeName(text) self.appendLine("* string value (%s)"%text) |