Apache OpenOffice (AOO) Bugzilla – Issue 124134
Wrong fontnames when importing docs on a bigendian system
Last modified: 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