On Friday, February 23, 2018 at 9:52:40 PM UTC+8, Claes Wallin wrote: > > On Friday, February 23, 2018 at 8:50:22 PM UTC+8, Claes Wallin wrote: >> >> On Friday, February 23, 2018 at 8:37:17 PM UTC+8, Matthew Flatt wrote: >>> >>> >>> (define convert (bytes-open-converter "UTF-8" "UTF-16")) >>> (bytes-convert convert (bytes 65 66 67 68)) >>> >>> which will fail if the iconv installation doesn't recognize "UTF-8" or >>> "UTF-16". >>> >>> Ok, so (bytes-open-converter) will return #f if it receives an unknown >>> encoding? >>> >>> I guess I'll have to look at what kind of iconv library racket is being >>> built with. >>> >> > I can confirm that my (bytes-open-converter) doesn't understand "UTF-16" > and returns #f. Thanks for the lead! >
Replacing the system libiconv with GNU libiconv works! We should have a full racket in Nix/Darwin in few days. -- /c -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.