Issue 124134 - Wrong fontnames when importing docs on a bigendian system
Summary: Wrong fontnames when importing docs on a bigendian system
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: 3.4.1
Hardware: All Solaris
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-28 14:06 UTC by Matthieu Riolo
Modified: 2014-01-28 14:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
fixes the fontname problem on bigendian-systems (1.19 KB, patch)
2014-01-28 14:06 UTC, Matthieu Riolo
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Matthieu Riolo 2014-01-28 14:06:29 UTC
Created attachment 82417 [details]
fixes the fontname problem on bigendian-systems

Hello everybody

I recently wrote an email to the mailinglist because of an error when reading doc files. The mail can be found on:

http://markmail.org/thread/7vytc465pi4wqhok

In the meantime I was able to fix the bug. The bug only appears on bigendian systems (I'm running solaris/sparc). The problem was that the length of the fontname was wrong detected because someone accidentally compared sizeof() with length(). The result was that only fontnames with a shorter name than 12 characters was read correctly. Beside the fix I also added some comments to make it more clear what the code is doing. The patch can be applied for free :)

Wishes Matthieu Riolo