I've added SRFI 207: String-notated bytevectors support https://srfi.schemers.org/srfi-197/srfi-207.html here:
https://codeberg.org/rlb/guile/src/branch/tmp/srfi-197 As with SRFI 197, I'm not posting the patches right now due to their relative size (e.g. the HTML). >From the NEWS there: Guile can now read and write #u8"\xe2;\x88;\x9e; Improbability\n" style bytestrings, though only writing them if bytestrings have been enabled by (print-enable 'bytestrings). See "SRFI-207 String-notated bytevectors" in the info pages for additional information. All of the SRFI-207 procedures have also been added, including support for hex and base64 coding. While there are some "REVIEW:" questions in the series, my initial question is whether or not we do want this in Guile. I suspect it might also eventually be useful when dealing with "unencodable" system data (paths, environment variables, etc.). For example, #u8"\b5;m-calibration.log" (Latin 1) when the system encoding is UTF-8. Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4