[Libreoffice] Fedora-specific hyperlink bug?

Caolán McNamara caolanm at redhat.com
Tue Nov 30 13:09:06 PST 2010


On Tue, 2010-11-30 at 10:36 -0500, Joe Smith wrote:
> Can someone running LibO on Fedora try and reproduce this bug:
> 
> document hyperlink with utf-8 characters fails export to PDF
> http://qa.openoffice.org/issues/show_bug.cgi?id=115788
> 
> So far no one else can reproduce it.

I can.  Its a problem in vcl/source/gdi/pdfwriter_impl.cxx and
DECODE_WITH_CHARSET.

We now always write as US_ASCII to pdf now, which is one change from
3.2.1, so pretty much anything with DECODE_WITH_CHARSET in that file is
very dubious unfortunately.

The attached two alternative fixes would fix it for me. Either don't
decode URIs and leave %XX in them (This might adversely affect the
"Launch" target, whatever that exactly does in PDF), or assume that we
can write as UTF-8 always. Probably need to go read the pdf spec to see
what's the correct option here.

C.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdf.nodecodeuri.patch
Type: text/x-patch
Size: 874 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101130/131ea1a9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdf.assumeutf8.patch
Type: text/x-patch
Size: 887 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101130/131ea1a9/attachment-0001.bin>


More information about the LibreOffice mailing list