I'm currently trying to read a string as ISO-8859-15 but it doesn't work in babashka
(slurp "datafile" :encoding "ISO-8859-15")
....
Caused by: java.io.UnsupportedEncodingException: ISO-8859-15
....
I'm adding support for this charset and will release tomorrow
how did you do that ?
and btw found out that that was half of the truth the file is actually cp437 😄 which is actually something from back in dos
--add-all-charsets is an option GraalVM supports but this adds 5 mb. I found out a way, using Claude, to write a GraalVM Feature to selectively add charsets which adds virtually nothing. ok I'll add cp437 too. you don't need the other one?
for now cp437 is more than enough and i'm really greatfull if thats added 😄
I learned that UTF-8 is a superset of cp437 so reading it as UTF-8 should work?
actually i never thought i'll have to deal with ascii or any other format again since utf8 is allready really old
sorry that's wrong what I said
strange for me it gives me strange characters
yeah sorry I was wrong.
so let me try cp437
aren't we all wrong 😉 at some points in time
the good old "i am the greatest -> damn i'm so stupid -> oh wow whats that did i do that -> i'm the greatest" loop 😄
hehehe
I thought: if we can find an already supported superset that's already included, then we're done. GraalVM native-image only includes 7 charsets by default: US-ASCII, ISO-8859-1, UTF-8, UTF-16, UTF-16BE, UTF-16LE, and the system default. All other charsets require explicit inclusion.
but I'll add your old DOS one
i feel bad 😞
tomorrow's release had a retro feeling to it anyway with the TUI support
no reason to feel bad. now I have a nice foundation to add other charsets too when people ask for it
maybe we can write stuff like those old ibm interfaces
https://clojurians.slack.com/archives/CLX41ASCS/p1622026247181700
Oh i'm not the only one :D cool
Merged. you should be able to test the new dev build in 10 minutes
i'll do that for sure
ok where is my build 😄 can't find it 😄
bash <(curl ) --dev-build --dir .
there it is i guessfile a github issue please
why do you need this encoding
the file is ISO8859-15 and it is brought by an external system 😕
German Bureaucracy
we could probably add support for this using a GraalVM flag. If you can do this research, write a test, we could merge it
i'll check what we need to do just found the issue right now 😄 so lets me check 😉 I'll be back 😎 (in an austrian accent)