Re: write escapes
Joseph Donaldson <[email protected]> Sat, 3 Apr 2021 00:57:42 +0000 (UTC)
| Newsgroups | gmane.lisp.scheme.bigloo |
|---|---|
| Message-ID | <[email protected]> |
Hello, David, write is hard coded to use octal for both the native and jvm runtimes. There may be an alternative to using write. What specifically are you trying to do? Best Regards,Joseph Donaldson On Wednesday, March 31, 2021, 3:44:07 PM PDT, David Halls <[email protected]> wrote: Hi- Is there a way to get write to use hex escapes instead of octal? i.e. instead of: 1:=> (write "\x01") "\001"#<output_port:stdout> I'd like: 1:=> (write "\x01") "\x01"#<output_port:stdout> I note UCS does something similar: 1:=> (write (utf8-string->ucs2-string "\u0001")) #u"\001"#<output_port:stdout> Thanks David