[Top][All Lists]

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

Re: [PoC] EXPERIMENTAL binaries of LilyPond 2.22.1

From: Lukas-Fabian Moser
Subject: Re: [PoC] EXPERIMENTAL binaries of LilyPond 2.22.1
Date: Fri, 14 May 2021 19:24:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

Hi Jonas,

Do you have any suggestion which route I could try to find out?
Not really, other than maybe writing a small C program that dumps the
arguments as binary in hex code?

I did:

#include "stdio.h" void dump_char(char c) { printf("%02hhX(%c)", c, c); } void dump_string(char *c) { printf("\"%s\":\n", c); while (*c) dump_char(*c++); printf("\n\n"); } int main(int argc, char **argv) { for (int i = 0; i < argc; i++) dump_string(argv[i]); return 0; }

If I use this instead of LilyPond in Frescobaldi, the output is:

Starte dumpargs 0.1 []...











"/home/lukas/Dokumente/Gehörbildungsunterricht/Wagner Walküre Schlafmotiv/":

2F(/)68(h)6F(o)6D(m)65(e)2F(/)6C(l)75(u)6B(k)61(a)73(s)2F(/)44(D)6F(o)6B(k)75(u)6D(m)65(e)6E(n)74(t)65(e)2F(/)47(G)65(e)68(h)C3(�)B6(�)72(r)62(b)69(i)6C(l)64(d)75(u)6E(n)67(g)73(s)75(u)6E(n)74(t)65(e)72(r)72(r)69(i)63(c)68(h)74(t)2F(/)57(W)61(a)67(g)6E(n)65(e)72(r)20( )57(W)61(a)6C(l)6B(k)C3(�)BC(�)72(r)65(e)20( )53(S)63(c)68(h)6C(l)61(a)66(f)6D(m)6F(o)74(t)69(i)76(v)2F(/)53(S)63(c)68(h)6C(l)61(a)66(f)6D(m)6F(o)74(t)69(i)76(v)2E(.)6C(l)79(y)

Erfolgreich abgeschlossen in 0.0".

Looks like Unicode alright, but frankly I'm surprised that plain gcc's char type and printf seem to be able to deal with multi-byte characters. But this probably has to do with the fact that this was my first #include "stdio.h" since (I think) 1998, and the world has moved on...

  However, I just tested on my system
with Frescobaldi 3.1.3 and it can compile both a file with special
characters in the filename as well as in a directory with special
characters. Are you sure that all of your filesystem is UTF-8 and that
Frescobaldi is started in an UTF-8 locale?

Not at all. It's just I never knowlingly tampered with encodings since I first installated the system (Mint), which displays German messages most of the time. I have to do some research before I can answer your questions.

(Just to be sure: Are you sure you let Frescobaldi compile the actual file and not Frescobaldi's temporary copy?)


reply via email to

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