Hey there, I am trying to build basu using muon on a custom Linux distribution that uses musl libc. I am receiving the following error:
basu-v0.2.1/meson.build:208:47: error unable to parse '65534\10'
208 | id = id_result.stdout().to_int()
^
basu-v0.2.1/meson.build:208:41: error in method str.to_int()
208 | id = id_result.stdout().to_int()
I tried it with meson and it builds just fine, which lead me to believe it's a muon bug.
Any ideas?
Just faced the exact same issue with
glib
. This appears to be a problem with theto_int()
method with null terminated strings.
The string is newline terminated, not null terminated.
Meson's implementation language happens to ignore the trailing junk, here.
I have made muon's to_int implementation ignore leading/trailing whitespace so this issue should be fixed.
Thanks for the fix. Mind bumping the release number as it has been some time :)