[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue 887 in lilypond: PDF point-and-click URI links with special chars

From: codesite-noreply
Subject: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS
Date: Thu, 29 Oct 2009 11:46:55 +0000

Status: Accepted
Owner: v.villenave
Labels: Type-Defect Priority-Medium OpSys-Linux OpSys-OSX

New issue 887 by v.villenave: PDF point-and-click URI links with special chars wrongly encoded depending on the OS

New report from Dénes:

Point-and-click links in Lily-generated PDF files do not work if they link
to a file with a non-ASCII filename or path.  The PDF spec says that the
URIs should be encoded as 7-bit ASCII, instead they are encoded in the
system's default encoding (Cp1250 on Windows, UTF-8 on Unixes) and then
escaped with backslash-codes.

Here's a not-for-the-faint-hearted example:

Links to a file named árvíztűrő tükörfúrógép.ly look like this:

 - On Windows:
C:\Documents and Settings\Harmath
Denes\workspace-classic\.runtime\árvíztűrő tükörfúrógép\árvíztűrő
tükörfúrógép.ly ->

This is correct, the system finds the file.

 - But on OS X...:
/Users/thsoft/Development/.runtime/árvíztűrő tükörfúrógép/árvíztűrő
tükörfúrógép.ly ->

 - and on GNU/Linux:

Notice that in this case, accented characters in the path (e.g. á ->
a\314\201) are encoded differently (!) than accented characters in the
filename (á -> \303\241)...
Seems like that the latter is correct, but only with Latin-2 characters;
further experiments showed that:
a\á.ly is correct
a\ő.ly is incorrect (ő is not in the Latin-2 charset)
á\*.ly are always incorrect

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]